Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions etc/kayobe/ansible/hotfix-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@

- name: Set fact for containers list
set_fact:
containers_list: host_containers.stdout
containers_list: "{{ host_containers.stdout }}"

- name: Fail if no containers match given regex
vars:
hotfix_containers: "{{ containers_list | split('\n') | regex_search(container_hotfix_container_regex) }}"
fail:
msg: "No containers matched. Please check your regex. Containers running on host: {{ host_containers | split('\n') }}"
msg: "No containers matched. Please check your regex. Containers running on host: {{ host_containers.stdout_lines }}"
when: hotfix_containers == ""

- name: Ensure hotfix-files directory exists on the remote host
Expand Down
1 change: 1 addition & 0 deletions etc/kayobe/ansible/run-container-hotfix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@

- name: Run container_hotfix_command
command: "{{ kolla_container_engine | default('docker')}} exec {{ '-u 0' if container_hotfix_become else '' }} {{ hotfix_container }} {{ container_hotfix_command }}"
when: container_hotfix_command