Difference between revisions of "ansible notes"
From thelinuxwiki
(Created page with "[https://www.redhat.com/en/services/training/ex457-red-hat-certified-specialist-in-ansible-network-automation-exam?section=objectives https://www.redhat.com/en/services/traini...") |
|||
Line 3: | Line 3: | ||
==installation== | ==installation== | ||
pip install ansible | pip install ansible | ||
+ | |||
+ | ==[https://docs.ansible.com/ansible/latest/inventory_guide/intro_inventory.html#variables-in-inventory Adding variables to inventory]== | ||
+ | |||
Connecting to hosts: behavioral inventory parameters | Connecting to hosts: behavioral inventory parameters |
Revision as of 01:07, 21 February 2024
installation
pip install ansible
Adding variables to inventory
Connecting to hosts: behavioral inventory parameters
variable ansible_connection
listing connection types/plugins
$ ansible-doc -t connection -l kubectl Execute tasks in pods running on Kubernetes libvirt_lxc Run tasks in lxc containers via libvirt chroot Interact with local chroot psrp Run tasks over Microsoft PowerShell Remoting Protocol network_cli Use network_cli to run command on network appliances vmware_tools Execute tasks inside a VM via VMware Tools ssh connect via ssh client binary httpapi Use httpapi to run command on network appliances docker Run tasks in docker containers ...