Ansible lint: Variables should have spaces before and after
Change-Id: I70f692f125739b5119c71a554a37b5c21d4164f6
This commit is contained in:
parent
2c2eeb8159
commit
1453474c65
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
- name: Find running ceph-osds containers
|
- name: Find running ceph-osds containers
|
||||||
become: true
|
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
|
register: ceph_osd_containers
|
||||||
|
|
||||||
- name: Stopping ceph-osd container
|
- name: Stopping ceph-osd container
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
|
|
||||||
- name: Mount cephfs
|
- name: Mount cephfs
|
||||||
become: true
|
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
|
register: mount_cephfs
|
||||||
changed_when: False
|
changed_when: False
|
||||||
run_once: True
|
run_once: True
|
||||||
|
@ -7,6 +7,6 @@
|
|||||||
# Docker bug (https://github.com/moby/moby/issues/11065), this might cause the
|
# 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
|
# container to be stopped if we restart Docker or reboot the server as we
|
||||||
# use the 'unless-stopped' restart policy by default.
|
# 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:
|
when:
|
||||||
- inventory_hostname in groups['nova-scheduler']
|
- inventory_hostname in groups['nova-scheduler']
|
||||||
|
Loading…
Reference in New Issue
Block a user