From 92f6ca7bb6d7b2f295406aab34094b1dba76ff94 Mon Sep 17 00:00:00 2001 From: liyuenan Date: Tue, 27 Dec 2016 17:44:34 +0800 Subject: Yamllint test JIRA: COMPASS-516 Change-Id: I482ce9bc86f4f963258c5b8823e0b00e83556eef Signed-off-by: liyuenan --- .../adapters/ansible/roles/ceph-mon/tasks/install_mon.yml | 15 +++++++++++---- deploy/adapters/ansible/roles/ceph-mon/tasks/main.yml | 1 + 2 files changed, 12 insertions(+), 4 deletions(-) (limited to 'deploy/adapters/ansible/roles/ceph-mon/tasks') diff --git a/deploy/adapters/ansible/roles/ceph-mon/tasks/install_mon.yml b/deploy/adapters/ansible/roles/ceph-mon/tasks/install_mon.yml index 1d14c2d2..f5600bec 100644 --- a/deploy/adapters/ansible/roles/ceph-mon/tasks/install_mon.yml +++ b/deploy/adapters/ansible/roles/ceph-mon/tasks/install_mon.yml @@ -1,3 +1,4 @@ +--- ############################################################################## # Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others. # @@ -13,7 +14,8 @@ file: path="/var/lib/ceph/mon/ceph-{{ inventory_hostname }}" state="directory" - name: Populate the monitor daemon - shell: "ceph-mon --mkfs -i {{ inventory_hostname }} --monmap /tmp/monmap --keyring /tmp/ceph.mon.keyring" + shell: "ceph-mon --mkfs -i {{ inventory_hostname }} --monmap /tmp/monmap \ + --keyring /tmp/ceph.mon.keyring" - name: Change ceph/mon dir owner to ceph shell: "chown -R ceph:ceph /var/lib/ceph/mon" @@ -27,7 +29,9 @@ when: ansible_os_family == "Debian" - name: Touch the done and auto start file - file: path="/var/lib/ceph/mon/ceph-{{ inventory_hostname }}/{{ item }}" state="touch" + file: + path: "/var/lib/ceph/mon/ceph-{{ inventory_hostname }}/{{ item }}" + state: "touch" with_items: - "done" - "{{ ceph_start_type }}" @@ -39,5 +43,8 @@ wait_for: path=/var/lib/ceph/bootstrap-osd/ceph.keyring - name: fetch osd keyring - fetch: src="/var/lib/ceph/bootstrap-osd/ceph.keyring" dest="/tmp/ceph.osd.keyring" flat=yes - run_once: True + fetch: + src: "/var/lib/ceph/bootstrap-osd/ceph.keyring" + dest: "/tmp/ceph.osd.keyring" + flat: "yes" + run_once: "True" diff --git a/deploy/adapters/ansible/roles/ceph-mon/tasks/main.yml b/deploy/adapters/ansible/roles/ceph-mon/tasks/main.yml index 3defa26d..5aa0694d 100644 --- a/deploy/adapters/ansible/roles/ceph-mon/tasks/main.yml +++ b/deploy/adapters/ansible/roles/ceph-mon/tasks/main.yml @@ -1,3 +1,4 @@ +--- ############################################################################## # Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others. # -- cgit 1.2.3-korg