|
|
|
|
|
|
|
|
{#- Restart salt-minion if needed but after all states are executed #} |
|
|
{#- Restart salt-minion if needed but after all states are executed #} |
|
|
salt_minion_service_restart: |
|
|
salt_minion_service_restart: |
|
|
cmd.wait: |
|
|
cmd.wait: |
|
|
- name: 'while true; do salt-call saltutil.running|grep fun: && continue; salt-call --local service.restart {{ minion.service }}; done' |
|
|
|
|
|
|
|
|
- name: 'while true; do salt-call saltutil.running|grep fun: && continue; salt-call --local service.restart {{ minion.service }}; break; done' |
|
|
- shell: /bin/bash |
|
|
- shell: /bin/bash |
|
|
- bg: true |
|
|
- bg: true |
|
|
- require: |
|
|
- require: |