improve installation

This commit is contained in:
L3D 2022-12-29 04:20:28 +01:00
parent 1e7faa6700
commit 61b785cae0
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 4 additions and 3 deletions

View file

@ -9,4 +9,4 @@
state: present state: present
profiles: domain,private,public profiles: domain,private,public
enabled: true enabled: true
register: _fw

View file

@ -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

View file

@ -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: