informatique:ansible
Ansible
Définir le user ssh, changer le port :
$ ansible <all|the_host> -e "ansible_user=debian" -e "ansible_port=30001" -m ping
OpenStack
- dynamic inventory via openstack http://docs.ansible.com/ansible/latest/intro_dynamic_inventory.html#example-openstack-external-inventory-script
Voir aussi: openstack
Install Openstack python client
sudo apt-get install python-os-client-config python-shade
Get the Openstack.rc
file
Then source it (api password will be asked), and give a try
$ wget https://raw.githubusercontent.com/ansible/ansible/devel/contrib/inventory/openstack.py $ chmod +x openstack.py $ source xxxxxxxxxxx-openrc.sh $ ./openstack.py --list
informatique/ansible.txt · Dernière modification : 21/01/2022 10:11 de cyrille