Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. ansible-playbook -i '192.168.0.7,' runrole.yml -e "ROLE=allwindows" -e "TARGETIP=192.168.0.7" -e "ansible_port=5986" --ask-vault-pass
  2.  
  3. - hosts: '{{TARGETIP}}'
  4. roles:
  5. - { role: '{{ROLE}}' }
  6.  
  7. ansible_user: Administrator
  8. ansible_password: SecretPasswordGoesHere
  9. ansible_connection: winrm
  10.  
  11. [allwindows]
  12. host1
  13. ...
  14. hostN
  15. 192.168.0.7
  16.  
  17. ansible-playbook runrole.yml -e "ROLE=allwindows" -e "TARGETIP=192.168.0.7" -e "ansible_port=5986" --ask-vault-pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement