Fix conditional for changed after install
This commit is contained in:
parent
c1c7ec9e56
commit
c2c6a2872f
@ -1,7 +1,7 @@
|
||||
- name: Install K3s agent
|
||||
command: /root/k3s_install.sh {{ type }}
|
||||
register: command
|
||||
changed_when: "'No change detected' in command.stdout"
|
||||
changed_when: "'No change detected' not in command.stdout"
|
||||
until: "command is not failed"
|
||||
retries: 2
|
||||
delay: 10
|
||||
|
@ -2,7 +2,7 @@
|
||||
command: /root/k3s_install.sh {{ type }}
|
||||
when: "inventory_hostname == groups['kubernetes'][0]"
|
||||
register: command
|
||||
changed_when: "'No change detected' in command.stdout"
|
||||
changed_when: "'No change detected' not in command.stdout"
|
||||
|
||||
- name: Restart when config changed, but install already done
|
||||
service:
|
||||
@ -21,7 +21,7 @@
|
||||
command: /root/k3s_install.sh {{ type }}
|
||||
when: "inventory_hostname != groups['kubernetes'][0]"
|
||||
register: command
|
||||
changed_when: "'No change detected' in command.stdout"
|
||||
changed_when: "'No change detected' not in command.stdout"
|
||||
until: "command is not failed"
|
||||
retries: 2
|
||||
delay: 10
|
||||
|
Loading…
x
Reference in New Issue
Block a user