Docker image for HPE oneview-ansible modules on Debian
oneview-ansible-debian
contains no playbooks or configuration. Everything must be passed in.
Set up a volume or use a bind mount containing the inventory and playbooks. This can be mounted into the container with -v
or --mount
The modules will run on localhost and must use the python in /usr/local/bin/python
. Add the following line to the inventory file:
localhost ansible_python_interpreter=python2.7 ansible_connection=local
Assume a named volume playbooks
with the Ansible inventory and a site.yml
playbook. This can be run with the following command:
docker run --rm \
-v playbooks:/playbooks \
hewlettpackardenterprise/oneview-ansible-debian \
ansible-playbook -i /playbooks/hosts /playbooks/site.yml
The HPE oneview-ansible in a container sample has a how to guide and an Ansible playbook you can use to try out the oneview-ansible-debian
container.