diff --git a/roles/fedora/tasks/packagekit.yml b/roles/fedora/tasks/packagekit.yml index 44d93d9..bc150bc 100644 --- a/roles/fedora/tasks/packagekit.yml +++ b/roles/fedora/tasks/packagekit.yml @@ -24,7 +24,7 @@ enabled: no masked: yes state: stopped - when: packagekitservice.stat.exists + when: packagekitservice.stat.exists and wsl_distro is not defined - name: Disable PackageKit offline updates become: true ansible.builtin.systemd: @@ -32,10 +32,11 @@ enabled: no masked: yes state: stopped - when: packagekitservice.stat.exists + when: packagekitservice.stat.exists and wsl_distro is not defined - name: Enable automatic updates become: true ansible.builtin.systemd: name: dnf-automatic-install.timer enabled: yes state: started + when: wsl_distro is not defined diff --git a/roles/fedora/tasks/packages-cli.yml b/roles/fedora/tasks/packages-cli.yml index 76eba11..b7b6ff5 100644 --- a/roles/fedora/tasks/packages-cli.yml +++ b/roles/fedora/tasks/packages-cli.yml @@ -30,7 +30,9 @@ - dnf-automatic - fossil - git + - glibc-langpack-en - gnupg + - hostname - ldns-utils - lldb - mc diff --git a/roles/fedora/tasks/solokeys.yml b/roles/fedora/tasks/solokeys.yml index feff9aa..bfc0920 100644 --- a/roles/fedora/tasks/solokeys.yml +++ b/roles/fedora/tasks/solokeys.yml @@ -22,8 +22,8 @@ - name: Reload udevadm rules become: true ansible.builtin.command: udevadm control --reload-rules - when: solokeys_copy.changed + when: solokeys_copy.changed and wsl_distro is not defined - name: Trigger udevadm become: true ansible.builtin.command: udevadm trigger - when: solokeys_copy.changed + when: solokeys_copy.changed and wsl_distro is not defined diff --git a/roles/fedora/tasks/ssh.yml b/roles/fedora/tasks/ssh.yml index 078019c..1cff345 100644 --- a/roles/fedora/tasks/ssh.yml +++ b/roles/fedora/tasks/ssh.yml @@ -26,12 +26,13 @@ name: sshd.service enabled: yes state: started + when: wsl_distro is not defined - name: Restart SSH become: true ansible.builtin.systemd: name: sshd.service state: restarted - when: changed_ssh_config.changed == true + when: changed_ssh_config.changed == true and wsl_distro is not defined - name: Check for firewalld ansible.builtin.stat: path: /usr/sbin/firewalld