Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- - hosts: '{{TARGETIP}}'
- roles:
- - { role: '{{ROLE}}' }
- ansible_user: Administrator
- ansible_password: SecretPasswordGoesHere
- ansible_connection: winrm
- [allwindows]
- host1
- ...
- hostN
- 192.168.0.7
- 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