Merge "tripleo_container_manage: skip shutdown.yml if not necessary" into stable/train

This commit is contained in:
Zuul 2020-02-07 21:30:29 +00:00 committed by Gerrit Code Review
commit 53b51fc98b
1 changed files with 6 additions and 0 deletions

View File

@ -81,8 +81,14 @@
when:
- tripleo_container_manage_systemd_order
block:
- name: Check if /usr/lib/systemd/system-preset/91-tripleo-container-shutdown.preset exists
stat:
path: /usr/lib/systemd/system-preset/91-tripleo-container-shutdown.preset
register: tripleo_container_shutdown
- name: Include tasks for systemd shutdown service
include_tasks: shutdown.yml
when:
- not tripleo_container_shutdown.stat.exists
- name: "Manage containers from {{ tripleo_container_manage_config }}"
when: