Stop checking for WSL
This commit is contained in:
parent
1d9e33f1cd
commit
a300cdbc90
11 changed files with 8 additions and 20 deletions
|
@ -18,7 +18,6 @@
|
|||
hosts: all
|
||||
vars:
|
||||
gui: false
|
||||
wsl_distro: "{{ lookup('env', 'WSL_DISTRO_NAME') }}"
|
||||
tasks:
|
||||
- name: Include main
|
||||
ansible.builtin.include_tasks: main.yml
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
hosts: all
|
||||
vars:
|
||||
gui: true
|
||||
wsl_distro: "{{ lookup('env', 'WSL_DISTRO_NAME') }}"
|
||||
tasks:
|
||||
- name: Include main
|
||||
ansible.builtin.include_tasks: main.yml
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
- import_tasks: modules.yml
|
||||
- import_tasks: ssh.yml
|
||||
- import_tasks: solokeys.yml
|
||||
when: wsl_distro is not defined
|
||||
- import_tasks: sudo.yml
|
||||
- import_tasks: vscode.yml
|
||||
when: gui == true
|
||||
|
|
|
@ -26,10 +26,9 @@
|
|||
name: ssh.service
|
||||
enabled: yes
|
||||
state: started
|
||||
when: wsl_distro is not defined
|
||||
- name: Restart SSH
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
name: ssh.service
|
||||
state: restarted
|
||||
when: changed_ssh_config.changed == true and wsl_distro is not defined
|
||||
when: changed_ssh_config.changed == true
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
enabled: no
|
||||
masked: yes
|
||||
state: stopped
|
||||
when: packagekitservice.stat.exists and wsl_distro is not defined
|
||||
when: packagekitservice.stat.exists
|
||||
- name: Disable PackageKit offline updates
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
|
@ -32,11 +32,10 @@
|
|||
enabled: no
|
||||
masked: yes
|
||||
state: stopped
|
||||
when: packagekitservice.stat.exists and wsl_distro is not defined
|
||||
when: packagekitservice.stat.exists
|
||||
- name: Enable automatic updates
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
name: dnf-automatic-install.timer
|
||||
enabled: yes
|
||||
state: started
|
||||
when: wsl_distro is not defined
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
- name: Reload udevadm rules
|
||||
become: true
|
||||
ansible.builtin.command: udevadm control --reload-rules
|
||||
when: solokeys_copy.changed and wsl_distro is not defined
|
||||
when: solokeys_copy.changed
|
||||
- name: Trigger udevadm
|
||||
become: true
|
||||
ansible.builtin.command: udevadm trigger
|
||||
when: solokeys_copy.changed and wsl_distro is not defined
|
||||
when: solokeys_copy.changed
|
||||
|
|
|
@ -26,13 +26,12 @@
|
|||
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 and wsl_distro is not defined
|
||||
when: changed_ssh_config.changed == true
|
||||
- name: Check for firewalld
|
||||
ansible.builtin.stat:
|
||||
path: /usr/sbin/firewalld
|
||||
|
|
|
@ -26,10 +26,9 @@
|
|||
name: ssh.service
|
||||
enabled: yes
|
||||
state: started
|
||||
when: wsl_distro is not defined
|
||||
- name: Restart SSH
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
name: ssh.service
|
||||
state: restarted
|
||||
when: changed_ssh_config.changed == true and wsl_distro is not defined
|
||||
when: changed_ssh_config.changed == true
|
||||
|
|
|
@ -18,6 +18,4 @@
|
|||
when: gui == true
|
||||
- import_tasks: modules.yml
|
||||
- import_tasks: ssh.yml
|
||||
when: wsl_distro is not defined
|
||||
- import_tasks: solokeys.yml
|
||||
when: wsl_distro is not defined
|
||||
|
|
|
@ -18,6 +18,4 @@
|
|||
when: gui == true
|
||||
- import_tasks: modules.yml
|
||||
- import_tasks: ssh.yml
|
||||
when: wsl_distro is not defined
|
||||
- import_tasks: solokeys.yml
|
||||
when: wsl_distro is not defined
|
||||
|
|
|
@ -26,10 +26,9 @@
|
|||
name: ssh.service
|
||||
enabled: yes
|
||||
state: started
|
||||
when: wsl_distro is not defined
|
||||
- name: Restart SSH
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
name: ssh.service
|
||||
state: restarted
|
||||
when: changed_ssh_config.changed == true and wsl_distro is not defined
|
||||
when: changed_ssh_config.changed == true
|
||||
|
|
Loading…
Reference in a new issue