Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. - name: Add russ.mckendrick user
  2. win_user:
  3. name: russ.mckendrick
  4. password: "mymegasecurepassword"
  5. groups: ["Users", "Administrators"]
  6.  
  7. - name: Install Git with Chocolatey
  8. win_chocolatey:
  9. name: "{{ item }}"
  10. with_items:
  11. - git.install
  12. - python
  13.  
  14. - name: Ensure IIS and ASP.NET are installed
  15. win_feature:
  16. name: AS-Web-Support
  17. state: present
  18. restart: yes
  19. include_sub_features: yes
  20. include_management_tools: yes
  21.  
  22. - name: Create the c:\inetpub\ansible folder
  23. win_file:
  24. path: c:\inetpub\ansible
  25. state: "directory"
  26.  
  27. - name: Put the default.aspx file in place, we should probably be doing something more fancy here
  28. win_copy:
  29. src: "default.aspx"
  30. dest: c:\inetpub\ansible\default.aspx
  31.  
  32. - name: Ensure that the DefaultAppPool web application exists
  33. win_iis_webapplication:
  34. name: "Default"
  35. physical_path: c:\inetpub\ansible
  36. application_pool: "DefaultAppPool"
  37. site: "Default Web Site"
  38. state: present
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement