diff --git a/ansible/roles/ceph/tasks/stop.yml b/ansible/roles/ceph/tasks/stop.yml index 90f1318d27..bb4dcdf3d4 100644 --- a/ansible/roles/ceph/tasks/stop.yml +++ b/ansible/roles/ceph/tasks/stop.yml @@ -11,7 +11,7 @@ - name: Find running ceph-osds containers become: true - command: "docker ps --filter name=ceph_osd_ --format {% raw %}{{.Names}}{% endraw %}" + command: "docker ps --filter name=ceph_osd_ --format '{% raw %}{{ .Names }}{% endraw %}'" register: ceph_osd_containers - name: Stopping ceph-osd container diff --git a/ansible/roles/manila/tasks/fix_cephfs_owner.yml b/ansible/roles/manila/tasks/fix_cephfs_owner.yml index 6c6602c467..fed2bf7795 100644 --- a/ansible/roles/manila/tasks/fix_cephfs_owner.yml +++ b/ansible/roles/manila/tasks/fix_cephfs_owner.yml @@ -47,7 +47,7 @@ - name: Mount cephfs become: true - command: "docker exec -u 0 manila_share mount -t ceph {{cephfs_addr}} /tmp/cephfs -o name=manila,secret={{ manila_keyring.stdout }}" + command: "docker exec -u 0 manila_share mount -t ceph {{ cephfs_addr }} /tmp/cephfs -o name=manila,secret={{ manila_keyring.stdout }}" register: mount_cephfs changed_when: False run_once: True diff --git a/ansible/roles/nova/tasks/refresh_scheduler_cell_cache.yml b/ansible/roles/nova/tasks/refresh_scheduler_cell_cache.yml index a8ece23601..d2e61578f2 100644 --- a/ansible/roles/nova/tasks/refresh_scheduler_cell_cache.yml +++ b/ansible/roles/nova/tasks/refresh_scheduler_cell_cache.yml @@ -7,6 +7,6 @@ # Docker bug (https://github.com/moby/moby/issues/11065), this might cause the # container to be stopped if we restart Docker or reboot the server as we # use the 'unless-stopped' restart policy by default. - shell: "kill -HUP `docker inspect -f '{% raw %}{{.State.Pid}}{% endraw %}' nova_scheduler`" + shell: "kill -HUP `docker inspect -f '{% raw %}{{ .State.Pid }}{% endraw %}' nova_scheduler`" when: - inventory_hostname in groups['nova-scheduler']