Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Set-NetConnectionProfile -InterfaceAlias Ethernet0 -NetworkCategory Private
- Enable-PSRemoting
- iwr https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1 -UseBasicParsing | iex
- ansible_user: administrator
- ansible_password: secret
- ansible_port: 5986
- ansible_connection: winrm
- [server]
- 192.168.1.2
- ---
- - name: Install IIS
- hosts: server
- gather_facts: false
- tasks:
- - name: Install IIS
- win_feature:
- name: "Web-Server"
- state: present
- restart: yes
- include_sub_features: yes
- include_management_tools: yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement