Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. # NASI-oke4
  2. - hosts: localhost
  3. connection: local
  4. gather_facts: no
  5. tasks:
  6. - add_host:
  7. name: NASI-oke4
  8. ansible_ssh_host: "{{hostvars['NASI-oke4']["private_ip"]}}"
  9. - debug:
  10. var: hostvars['NASI-oke4']
  11. - shell: echo hi
  12. delegate_to: NASI-oke4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement