Fixes for Fedora on WSL
This commit is contained in:
parent
f0a6a4ee47
commit
c1881a2320
4 changed files with 9 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -30,7 +30,9 @@
|
|||
- dnf-automatic
|
||||
- fossil
|
||||
- git
|
||||
- glibc-langpack-en
|
||||
- gnupg
|
||||
- hostname
|
||||
- ldns-utils
|
||||
- lldb
|
||||
- mc
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue