Merge pull request #311 from ti-mo/python2-local-action

Use local_action to ensure Ansible executes under python2
pull/313/head
Leseb 2015-07-03 16:54:38 +02:00
commit f4414208d2
1 changed files with 2 additions and 6 deletions

View File

@ -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