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
|
||||
|
||||
- name: generate cluster UUID
|
||||
shell: >
|
||||
uuidgen | tee fetch/ceph_cluster_uuid.conf
|
||||
local_action: shell uuidgen | tee fetch/ceph_cluster_uuid.conf
|
||||
creates=fetch/ceph_cluster_uuid.conf
|
||||
connection: local
|
||||
register: cluster_uuid
|
||||
sudo: false
|
||||
|
||||
- name: read cluster UUID if it already exists
|
||||
command: >
|
||||
cat fetch/ceph_cluster_uuid.conf
|
||||
local_action: command cat fetch/ceph_cluster_uuid.conf
|
||||
removes=fetch/ceph_cluster_uuid.conf
|
||||
connection: local
|
||||
changed_when: false
|
||||
register: cluster_uuid
|
||||
sudo: false
|
||||
|
|
Loading…
Reference in New Issue