Merge pull request #1117 from D3N14L/master

Improve --check compatibility for ceph-common, ceph-mon and ceph-rgw roles
pull/1102/head
Sébastien Han 2016-11-24 16:43:15 +01:00 committed by GitHub
commit 78b6ae7dae
4 changed files with 6 additions and 0 deletions

View File

@ -169,12 +169,14 @@
shell: "stat /var/run/ceph/*.asok > /dev/null 2>&1"
changed_when: false
failed_when: false
always_run: true
register: socket
- name: check for a rados gateway socket
shell: "stat {{ rbd_client_admin_socket_path }}*.asok > /dev/null 2>&1"
changed_when: false
failed_when: false
always_run: true
register: socketrgw
- name: create a local fetch directory if it does not exist
@ -197,6 +199,7 @@
changed_when: false
register: cluster_uuid
become: false
always_run: true
when: generate_fsid
- name: create ceph conf directory

View File

@ -25,6 +25,7 @@
shell: ls -1 /etc/ceph/*.keyring
changed_when: false
register: ceph_keys
always_run: true
when: cephx
- name: set keys permissions

View File

@ -12,6 +12,7 @@
changed_when: false
register: monitor_keyring
become: false
always_run: true
when: cephx
- set_fact:

View File

@ -4,6 +4,7 @@
register: rgwstatus
changed_when: false
failed_when: false
always_run: true
- name: start rgw
command: /etc/init.d/radosgw start