diff options
| author | Martin Hiner <martin.hiner@tietoevry.com> | 2021-11-04 17:29:16 +0100 |
|---|---|---|
| committer | Ivan Halomi <i.halomi@partner.samsung.com> | 2023-01-19 10:38:41 +0100 |
| commit | 4866017e5256623fe1838817260ce5836cc26ef1 (patch) | |
| tree | 23f2631fc9a175f7be1a72031adaeb123df86950 /ansible/gather-facts.yml | |
| parent | 08267a59ce49c63cf7d9d61276154d2b088ec5e8 (diff) | |
| download | kolla-ansible-4866017e5256623fe1838817260ce5836cc26ef1.tar.gz kolla-ansible-4866017e5256623fe1838817260ce5836cc26ef1.zip | |
Add systemd container control
This commit adds SystemdWorker class to kolla_docker ansible module.
It is used to manage container state via systemd calls.
Change-Id: I20e65a6771ebeee462a3aaaabaa5f0596bdd0581
Signed-off-by: Ivan Halomi <i.halomi@partner.samsung.com>
Signed-off-by: Martin Hiner <m.hiner@partner.samsung.com>
Diffstat (limited to 'ansible/gather-facts.yml')
| -rw-r--r-- | ansible/gather-facts.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ansible/gather-facts.yml b/ansible/gather-facts.yml index f5247a6ab..b50389660 100644 --- a/ansible/gather-facts.yml +++ b/ansible/gather-facts.yml @@ -15,6 +15,13 @@ when: - not ansible_facts + - name: Gather package facts + package_facts: + when: + - "'packages' not in ansible_facts" + - kolla_action is defined + - kolla_action == "precheck" + - name: Group hosts to determine when using --limit group_by: key: "all_using_limit_{{ (ansible_play_batch | length) != (groups['all'] | length) }}" @@ -49,4 +56,14 @@ # We gathered facts for all hosts in the batch during the first play. when: - not hostvars[item].ansible_facts + + - name: Gather package facts + package_facts: + delegate_facts: True + delegate_to: "{{ item }}" + with_items: "{{ delegate_hosts }}" + when: + - "'packages' not in hostvars[item].ansible_facts" + - kolla_action is defined + - "kolla_action == 'precheck'" tags: always |
