improve installation
This commit is contained in:
parent
1e7faa6700
commit
61b785cae0
3 changed files with 4 additions and 3 deletions
|
@ -9,4 +9,4 @@
|
||||||
state: present
|
state: present
|
||||||
profiles: domain,private,public
|
profiles: domain,private,public
|
||||||
enabled: true
|
enabled: true
|
||||||
|
register: _fw
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: Configure Windows Firewall
|
- name: Configure Windows Firewall
|
||||||
ansible.builtin.include_tasks: firwall.yml
|
ansible.builtin.include_tasks: firewall.yml
|
||||||
|
|
||||||
- Name: Install OpenSSH via Powershell
|
- name: Install OpenSSH via Powershell
|
||||||
ansible.builtin.include_tasks: powershell.yml
|
ansible.builtin.include_tasks: powershell.yml
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
- name: Install the OpenSSH Server
|
- name: Install the OpenSSH Server
|
||||||
ansible.windows.win_powershell:
|
ansible.windows.win_powershell:
|
||||||
script: "Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0"
|
script: "Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0"
|
||||||
|
changed_when: _fw.changed
|
||||||
|
|
||||||
- name: Set service startup mode to auto and ensure sshd is started
|
- name: Set service startup mode to auto and ensure sshd is started
|
||||||
ansible.windows.win_service:
|
ansible.windows.win_service:
|
||||||
|
|
Loading…
Reference in a new issue