Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. ## Using Ansible command line
  2.  
  3. ```bash
  4. ansible-playbook --connection=local --inventory 127.0.0.1, playbook.yml
  5. ```
  6.  
  7. ## Using inventory
  8.  
  9. ```ini
  10. 127.0.0.1 ansible_connection=local
  11. ```
  12.  
  13. ## Using Ansible configuration file
  14.  
  15. ```ini
  16. [defaults]
  17. transport = local
  18. ```
  19.  
  20. # Using playbook header
  21.  
  22. ```yaml
  23. - hosts: 127.0.0.1
  24. connection: local
  25. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement