Fixes for Fedora on WSL

This commit is contained in:
Anthony Rose 2022-03-10 15:49:37 +00:00
parent f0a6a4ee47
commit c1881a2320
4 changed files with 9 additions and 5 deletions

View file

@ -24,7 +24,7 @@
enabled: no enabled: no
masked: yes masked: yes
state: stopped state: stopped
when: packagekitservice.stat.exists when: packagekitservice.stat.exists and wsl_distro is not defined
- name: Disable PackageKit offline updates - name: Disable PackageKit offline updates
become: true become: true
ansible.builtin.systemd: ansible.builtin.systemd:
@ -32,10 +32,11 @@
enabled: no enabled: no
masked: yes masked: yes
state: stopped state: stopped
when: packagekitservice.stat.exists when: packagekitservice.stat.exists and wsl_distro is not defined
- name: Enable automatic updates - name: Enable automatic updates
become: true become: true
ansible.builtin.systemd: ansible.builtin.systemd:
name: dnf-automatic-install.timer name: dnf-automatic-install.timer
enabled: yes enabled: yes
state: started state: started
when: wsl_distro is not defined

View file

@ -30,7 +30,9 @@
- dnf-automatic - dnf-automatic
- fossil - fossil
- git - git
- glibc-langpack-en
- gnupg - gnupg
- hostname
- ldns-utils - ldns-utils
- lldb - lldb
- mc - mc

View file

@ -22,8 +22,8 @@
- name: Reload udevadm rules - name: Reload udevadm rules
become: true become: true
ansible.builtin.command: udevadm control --reload-rules ansible.builtin.command: udevadm control --reload-rules
when: solokeys_copy.changed when: solokeys_copy.changed and wsl_distro is not defined
- name: Trigger udevadm - name: Trigger udevadm
become: true become: true
ansible.builtin.command: udevadm trigger ansible.builtin.command: udevadm trigger
when: solokeys_copy.changed when: solokeys_copy.changed and wsl_distro is not defined

View file

@ -26,12 +26,13 @@
name: sshd.service name: sshd.service
enabled: yes enabled: yes
state: started state: started
when: wsl_distro is not defined
- name: Restart SSH - name: Restart SSH
become: true become: true
ansible.builtin.systemd: ansible.builtin.systemd:
name: sshd.service name: sshd.service
state: restarted state: restarted
when: changed_ssh_config.changed == true when: changed_ssh_config.changed == true and wsl_distro is not defined
- name: Check for firewalld - name: Check for firewalld
ansible.builtin.stat: ansible.builtin.stat:
path: /usr/sbin/firewalld path: /usr/sbin/firewalld