Why does the oci dynamic inventory plugin only discover instances that have lifecycle_state RUNNING?
Summary:
When using the OCI ansible dynamic plugin to create an inventory, it finds all compute instances that are running, but ignores those that are in stopped state.
Content (required):
When creating a playbook to control the startup or shutdown of compute instances, one can manage the state of a instance via ansible as long as one knows the OCID of the instance. For a static environment, this is ok, but does embed a hard coded value in the playbook. Using the OCI ansible dynamic inventory plugin one can discover the instances and are able to retrieve the OCID of a discovered instance. One can then proceed to perform a clean shutdown of the instance. However, if the playbook is rerun in order to restart the instance, it fails