Skip to content

Instantly share code, notes, and snippets.

@russmckendrick
Created December 2, 2016 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save russmckendrick/08bdbe8d53003e1946b3985265ee7685 to your computer and use it in GitHub Desktop.
Save russmckendrick/08bdbe8d53003e1946b3985265ee7685 to your computer and use it in GitHub Desktop.
Random Ansible file !!!
- name: Add russ.mckendrick user
win_user:
name: russ.mckendrick
password: "mymegasecurepassword"
groups: ["Users", "Administrators"]
- name: Install Git with Chocolatey
win_chocolatey:
name: "{{ item }}"
with_items:
- git.install
- python
- name: Ensure IIS and ASP.NET are installed
win_feature:
name: AS-Web-Support
state: present
restart: yes
include_sub_features: yes
include_management_tools: yes
- name: Create the c:\inetpub\ansible folder
win_file:
path: c:\inetpub\ansible
state: "directory"
- name: Put the default.aspx file in place, we should probably be doing something more fancy here
win_copy:
src: "default.aspx"
dest: c:\inetpub\ansible\default.aspx
- name: Ensure that the DefaultAppPool web application exists
win_iis_webapplication:
name: "Default"
physical_path: c:\inetpub\ansible
application_pool: "DefaultAppPool"
site: "Default Web Site"
state: present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment