ansible_intro
This is an old revision of the document!
Running script locally
If you wish to run ansible playbooks from your local machine, you can define the following at the top of your playbook:
--- - hosts: 127.0.0.1 connection: localYou can also run ansible commands locally with the following command:
# ansible localhost -a "/bin/echo hello" localhost | success | rc=0 >> hello
ansible_intro.1485858827.txt.gz · Last modified: 2024/05/23 07:26 (external edit)