Fix service and conditional

This commit is contained in:
2023-04-05 14:13:22 +02:00
parent 0d43d07ad4
commit dadd077723
2 changed files with 13 additions and 10 deletions

View File

@@ -7,6 +7,7 @@
delay: 10
- name: Restart when config changed, but install already done
service: k3s
status: restarted
when: "inventory_hostname != groups['kubernetes'][0] && !command.changed && config.changed"
service:
name: k3s
status: restarted
when: "inventory_hostname != groups['kubernetes'][0] and not command.changed and config.changed"