Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # NASI-oke4
- - hosts: localhost
- connection: local
- gather_facts: no
- tasks:
- - add_host:
- name: NASI-oke4
- ansible_ssh_host: "{{hostvars['NASI-oke4']["private_ip"]}}"
- - debug:
- var: hostvars['NASI-oke4']
- - shell: echo hi
- delegate_to: NASI-oke4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement