This directory contains everything you need to start provisioning with OneView and Ansible.
Requirements: To run these examples you need to execute the Ansible OneView Setup.
NOTE: A sample configuration file is provided within the examples directory. To use it, execute the following steps:
cd
into theexamples
directory.- Copy the
oneview_config-rename.json
file into a new file namedoneview_config.json
. - Modify the file inserting your credentials, OneView appliance IP or hostname, and anything else that your environment requires.
- Some playbooks like
oneview_enclosure
, for example, need specific configurations. These are set in thevar/config.yml
file. To create the file, you should: cd
into theexamples/vars
directory.- Copy the
config.yml.rename
file into a new file namedconfig.yml
. - Set the variables according to your environment.
🔒 Tip: Check the oneview_config.json
file permissions, since the password is stored in clear-text.
To run an Ansible playbook, execute the following command:
ansible-playbook -i <path_to_inventory_file> <example_file>.yml