mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #311 from ti-mo/python2-local-action
Use local_action to ensure Ansible executes under python2pull/313/head
commit
f4414208d2
|
@ -32,18 +32,14 @@
|
||||||
register: socketrgw
|
register: socketrgw
|
||||||
|
|
||||||
- name: generate cluster UUID
|
- name: generate cluster UUID
|
||||||
shell: >
|
local_action: shell uuidgen | tee fetch/ceph_cluster_uuid.conf
|
||||||
uuidgen | tee fetch/ceph_cluster_uuid.conf
|
|
||||||
creates=fetch/ceph_cluster_uuid.conf
|
creates=fetch/ceph_cluster_uuid.conf
|
||||||
connection: local
|
|
||||||
register: cluster_uuid
|
register: cluster_uuid
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
||||||
- name: read cluster UUID if it already exists
|
- name: read cluster UUID if it already exists
|
||||||
command: >
|
local_action: command cat fetch/ceph_cluster_uuid.conf
|
||||||
cat fetch/ceph_cluster_uuid.conf
|
|
||||||
removes=fetch/ceph_cluster_uuid.conf
|
removes=fetch/ceph_cluster_uuid.conf
|
||||||
connection: local
|
|
||||||
changed_when: false
|
changed_when: false
|
||||||
register: cluster_uuid
|
register: cluster_uuid
|
||||||
sudo: false
|
sudo: false
|
||||||
|
|
Loading…
Reference in New Issue