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

ansible-playbook failed

edited Apr 22, 2020 3:50AM in OCI - General 4 comments

Summary

fatal: [localhost]: FAILED! => {"changed": false, "msg": "oci python sdk required for this module."}

Content

Hi,

I am getting below error when I run the playbook.

TASK [Create a VCN] ********************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "oci python sdk required for this module."}

I did all the necessary steps before running the playbook and below are config 

#env-vars
SAMPLE_COMPARTMENT_OCID=<compartment_ocid1>
SAMPLE_IMAGE_OCID=ocid1.image.oc1.iad.aaaaaaaa6tp7lhyrcokdtf7vrbmxyp2pctgg4uxvt4jz4vc47qoc2ec4anha
SAMPLE_AD_NAME=XxYz:US-ASHBURN-AD-1"

#ansbile --version

ansible 2.8.4
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/opc/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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