0e0000276a
Added workaround to stop containers which should not be on the node, accouding to a file with list of services which is filled in by ansible's tasks. It allows to implement scale-down and resource migration.
7 lines
158 B
YAML
7 lines
158 B
YAML
|
|
- hosts: [service/containers]
|
|
sudo: yes
|
|
tasks:
|
|
- file: state=directory path=/var/lib/solar/
|
|
- shell: echo -n "" > /var/lib/solar/containers_list
|