Advertisement
Guest User

Untitled

a guest
Sep 13th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. Set-NetConnectionProfile -InterfaceAlias Ethernet0 -NetworkCategory Private
  2. Enable-PSRemoting
  3. iwr https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1 -UseBasicParsing | iex
  4.  
  5. ansible_user: administrator
  6. ansible_password: secret
  7. ansible_port: 5986
  8. ansible_connection: winrm
  9.  
  10. [server]
  11. 192.168.1.2
  12.  
  13. ---
  14. - name: Install IIS
  15. hosts: server
  16. gather_facts: false
  17. tasks:
  18. - name: Install IIS
  19. win_feature:
  20. name: "Web-Server"
  21. state: present
  22. restart: yes
  23. include_sub_features: yes
  24. include_management_tools: yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement