Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
Why does the oci dynamic inventory plugin only discover instances that have lifecycle_state RUNNING? — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Why does the oci dynamic inventory plugin only discover instances that have lifecycle_state RUNNING?

Received Response
1
Views
1
Comments

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!