summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/ceph-mon
diff options
context:
space:
mode:
authorliyuenan <liyuenan@huawei.com>2016-12-27 17:44:34 +0800
committerliyuenan <liyuenan@huawei.com>2017-01-05 09:42:35 +0800
commit92f6ca7bb6d7b2f295406aab34094b1dba76ff94 (patch)
treec4e62927a3bf9862f7ba9ce286cbece2c4335ef4 /deploy/adapters/ansible/roles/ceph-mon
parent6072a49adb33f2bce3f48b9c7b8be7d96cf8501c (diff)
Yamllint test
JIRA: COMPASS-516 Change-Id: I482ce9bc86f4f963258c5b8823e0b00e83556eef Signed-off-by: liyuenan <liyuenan@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/ceph-mon')
-rw-r--r--deploy/adapters/ansible/roles/ceph-mon/tasks/install_mon.yml15
-rw-r--r--deploy/adapters/ansible/roles/ceph-mon/tasks/main.yml1
-rw-r--r--deploy/adapters/ansible/roles/ceph-mon/vars/main.yml1
3 files changed, 12 insertions, 5 deletions
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.
#
diff --git a/deploy/adapters/ansible/roles/ceph-mon/vars/main.yml b/deploy/adapters/ansible/roles/ceph-mon/vars/main.yml
index 466ea6ab..d760b4e6 100644
--- a/deploy/adapters/ansible/roles/ceph-mon/vars/main.yml
+++ b/deploy/adapters/ansible/roles/ceph-mon/vars/main.yml
@@ -7,4 +7,3 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
---
-