Loading tasks/main.yaml +16 −4 Original line number Diff line number Diff line Loading @@ -35,7 +35,9 @@ # swap - name: "swap" ansible.builtin.import_tasks: "swap.yaml" when: 'type == "vm"' when: - 'type == "vm"' - "ansible_os_family =='Debian'" tags: "swap" # apt Loading Loading @@ -71,6 +73,7 @@ # telemetry - name: "telemetry" ansible.builtin.import_tasks: "telemetry.yaml" when: "ansible_os_family == 'Debian'" tags: "telemetry" # service Loading @@ -79,7 +82,9 @@ loop: "{{ service }}" loop_control: loop_var: "__service" when: "service is defined" when: - "service is defined" - "ansible_os_family == 'Debian'" # flush handler - name: "flush handlers" Loading @@ -88,7 +93,9 @@ # chrony - name: "ntp" ansible.builtin.import_tasks: "ntp.yaml" when: 'type == "vm" or type == "hw"' when: - 'type == "vm" or type == "hw"' - "ansible_os_family == 'Debian'" tags: "ntp" # flush handler Loading Loading @@ -135,7 +142,9 @@ loop: "{{ systemctl }}" loop_control: loop_var: "__systemctl" when: 'type == "vm"' when: - 'type == "vm"' - "ansible_os_family == 'Debian'" tags: "systemctl" # syslog Loading @@ -156,6 +165,7 @@ # journald - name: "journald" ansible.builtin.import_tasks: "journald.yaml" when: "ansible_os_family == 'Debian'" tags: "journald" # flush handler Loading @@ -170,6 +180,7 @@ # sshd - name: "sshd" ansible.builtin.import_tasks: "sshd.yaml" when: "ansible_os_family == 'Debian'" tags: "sshd" # flush handler Loading @@ -187,4 +198,5 @@ # firewall - name: "firewall" ansible.builtin.import_tasks: "firewall.yaml" when: "ansible_os_family == 'Debian'" tags: "firewall" Loading
tasks/main.yaml +16 −4 Original line number Diff line number Diff line Loading @@ -35,7 +35,9 @@ # swap - name: "swap" ansible.builtin.import_tasks: "swap.yaml" when: 'type == "vm"' when: - 'type == "vm"' - "ansible_os_family =='Debian'" tags: "swap" # apt Loading Loading @@ -71,6 +73,7 @@ # telemetry - name: "telemetry" ansible.builtin.import_tasks: "telemetry.yaml" when: "ansible_os_family == 'Debian'" tags: "telemetry" # service Loading @@ -79,7 +82,9 @@ loop: "{{ service }}" loop_control: loop_var: "__service" when: "service is defined" when: - "service is defined" - "ansible_os_family == 'Debian'" # flush handler - name: "flush handlers" Loading @@ -88,7 +93,9 @@ # chrony - name: "ntp" ansible.builtin.import_tasks: "ntp.yaml" when: 'type == "vm" or type == "hw"' when: - 'type == "vm" or type == "hw"' - "ansible_os_family == 'Debian'" tags: "ntp" # flush handler Loading Loading @@ -135,7 +142,9 @@ loop: "{{ systemctl }}" loop_control: loop_var: "__systemctl" when: 'type == "vm"' when: - 'type == "vm"' - "ansible_os_family == 'Debian'" tags: "systemctl" # syslog Loading @@ -156,6 +165,7 @@ # journald - name: "journald" ansible.builtin.import_tasks: "journald.yaml" when: "ansible_os_family == 'Debian'" tags: "journald" # flush handler Loading @@ -170,6 +180,7 @@ # sshd - name: "sshd" ansible.builtin.import_tasks: "sshd.yaml" when: "ansible_os_family == 'Debian'" tags: "sshd" # flush handler Loading @@ -187,4 +198,5 @@ # firewall - name: "firewall" ansible.builtin.import_tasks: "firewall.yaml" when: "ansible_os_family == 'Debian'" tags: "firewall"