Skip to content

Commit 16c7da2

Browse files
Fix block
1 parent 2421dd1 commit 16c7da2

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

etc/kayobe/ansible/deploy-os-capacity-exporter.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,19 @@
5757
when: stackhpc_os_capacity_openstack_cacert | length > 0
5858
register: cacert_result
5959

60-
- name: Ensure os_capacity container is running
61-
community.docker.docker_container:
62-
name: os_capacity
63-
image: ghcr.io/stackhpc/os-capacity:{{ stackhpc_os_capacity_version }}
64-
env:
65-
OS_CLOUD: openstack
66-
OS_CLIENT_CONFIG_FILE: /etc/openstack/clouds.yaml
67-
mounts:
68-
- type: bind
69-
source: /opt/kayobe/os-capacity/
70-
target: /etc/openstack/
71-
network_mode: host
72-
restart: "{{ clouds_yaml_result is changed or cacert_result is changed }}"
73-
restart_policy: unless-stopped
74-
become: true
75-
when: stackhpc_enable_os_capacity
60+
- name: Ensure os_capacity container is running
61+
community.docker.docker_container:
62+
name: os_capacity
63+
image: ghcr.io/stackhpc/os-capacity:{{ stackhpc_os_capacity_version }}
64+
env:
65+
OS_CLOUD: openstack
66+
OS_CLIENT_CONFIG_FILE: /etc/openstack/clouds.yaml
67+
mounts:
68+
- type: bind
69+
source: /opt/kayobe/os-capacity/
70+
target: /etc/openstack/
71+
network_mode: host
72+
restart: "{{ clouds_yaml_result is changed or cacert_result is changed }}"
73+
restart_policy: unless-stopped
74+
become: true
75+
when: stackhpc_enable_os_capacity and openrc_file_stat.stat.exists

0 commit comments

Comments
 (0)