Created
December 2, 2016 08:37
-
-
Save russmckendrick/08bdbe8d53003e1946b3985265ee7685 to your computer and use it in GitHub Desktop.
Random Ansible file !!!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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