Fix service task wrong usage
This commit is contained in:
parent
c2c6a2872f
commit
668ff23ee6
@ -8,6 +8,6 @@
|
|||||||
|
|
||||||
- name: Restart when config changed, but install already done
|
- name: Restart when config changed, but install already done
|
||||||
service:
|
service:
|
||||||
name: k3s
|
name: k3s-agent
|
||||||
status: restarted
|
state: restarted
|
||||||
when: "inventory_hostname != groups['kubernetes'][0] and not command.changed and config.changed"
|
when: "inventory_hostname != groups['kubernetes'][0] and not command.changed and config.changed"
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
- name: Restart when config changed, but install already done
|
- name: Restart when config changed, but install already done
|
||||||
service:
|
service:
|
||||||
name: k3s
|
name: k3s
|
||||||
status: restarted
|
state: restarted
|
||||||
when: "inventory_hostname == groups['kubernetes'][0] and not command.changed and config.changed"
|
when: "inventory_hostname == groups['kubernetes'][0] and not command.changed and config.changed"
|
||||||
|
|
||||||
- name: Waiting for K3s-server to accept connections
|
- name: Waiting for K3s-server to accept connections
|
||||||
@ -29,7 +29,7 @@
|
|||||||
- name: Restart when config changed, but install already done
|
- name: Restart when config changed, but install already done
|
||||||
service:
|
service:
|
||||||
name: k3s
|
name: k3s
|
||||||
status: restarted
|
state: restarted
|
||||||
when: "inventory_hostname != groups['kubernetes'][0] and not command.changed and config.changed"
|
when: "inventory_hostname != groups['kubernetes'][0] and not command.changed and config.changed"
|
||||||
|
|
||||||
- name: Waiting for K3s-server to accept connections on other nodes
|
- name: Waiting for K3s-server to accept connections on other nodes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user