Flaxplax

Personal documentation

Commands

Examples

    ansible <host> -a <command>
    ansible all -a "/sbin/reboot"

    ansible <host> -m <module>
    ansible target1 -m ping

    #to specify inventory file use -i

    ansible all -m ping -i inventory.txt

    #Playbook

    ansible-playbook <playbook.yml> -i <inventory.txt>
Last updated on 22 Jul 2020
Published on 22 Jul 2020