refactor(standardize): fix sudoers lecture syntax, extract ssh config, remove redundant os filters
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
fail_msg: Failed to detect any network interfaces.
|
||||
|
||||
- name: Configure NetworkManager profiles
|
||||
when: os | lower not in ["alpine", "void"]
|
||||
when: os not in ["alpine", "void"]
|
||||
block:
|
||||
- name: Copy NetworkManager keyfile per interface
|
||||
vars:
|
||||
@@ -47,14 +47,14 @@
|
||||
label: "LAN-{{ idx }}"
|
||||
|
||||
- name: Fix Ubuntu unmanaged devices
|
||||
when: os | lower in ["ubuntu", "ubuntu-lts"]
|
||||
when: os in ["ubuntu", "ubuntu-lts"]
|
||||
ansible.builtin.file:
|
||||
path: /mnt/etc/NetworkManager/conf.d/10-globally-managed-devices.conf
|
||||
state: touch
|
||||
mode: "0644"
|
||||
|
||||
- name: Configure Alpine networking
|
||||
when: os | lower == "alpine"
|
||||
when: os == "alpine"
|
||||
vars:
|
||||
configuration_dns_list: "{{ system_cfg.network.dns.servers | default([]) }}"
|
||||
block:
|
||||
@@ -90,7 +90,7 @@
|
||||
{% endfor %}
|
||||
|
||||
- name: Configure Void networking
|
||||
when: os | lower == "void"
|
||||
when: os == "void"
|
||||
vars:
|
||||
configuration_dns_list: "{{ system_cfg.network.dns.servers | default([]) }}"
|
||||
block:
|
||||
|
||||
Reference in New Issue
Block a user