diff --git a/roles/airgap/tasks/main.yml b/roles/airgap/tasks/main.yml index 092335f9..db30a49b 100644 --- a/roles/airgap/tasks/main.yml +++ b/roles/airgap/tasks/main.yml @@ -97,6 +97,7 @@ skip: true - name: Run K3s Install [server] + when: inventory_hostname in groups['server'] ansible.builtin.command: cmd: /usr/local/bin/k3s-install.sh environment: @@ -105,6 +106,7 @@ changed_when: true - name: Run K3s Install [agent] + when: inventory_hostname in groups['agent'] ansible.builtin.command: cmd: /usr/local/bin/k3s-install.sh environment: