summaryrefslogtreecommitdiffstats
path: root/playbooks/adhoc/create_pv
diff options
context:
space:
mode:
authorJason DeTiberus <jdetiber@redhat.com>2015-11-30 11:42:46 -0500
committerJason DeTiberus <jdetiber@redhat.com>2015-11-30 11:42:46 -0500
commite81bf0e72dc12736b3ea69151123697b69b5240d (patch)
tree910eec27b41951a2692327c02454bfa599d779ca /playbooks/adhoc/create_pv
parentf790d7d49055b3eeb382fa4e90884f73162849cc (diff)
downloadopenshift-e81bf0e72dc12736b3ea69151123697b69b5240d.tar.gz
openshift-e81bf0e72dc12736b3ea69151123697b69b5240d.tar.bz2
openshift-e81bf0e72dc12736b3ea69151123697b69b5240d.tar.xz
openshift-e81bf0e72dc12736b3ea69151123697b69b5240d.zip
Enforce connection: local and become: no on all localhost plays
Diffstat (limited to 'playbooks/adhoc/create_pv')
-rw-r--r--playbooks/adhoc/create_pv/create_pv.yaml10
1 files changed, 6 insertions, 4 deletions
diff --git a/playbooks/adhoc/create_pv/create_pv.yaml b/playbooks/adhoc/create_pv/create_pv.yaml
index 4f0ef7a75..e4eb5da49 100644
--- a/playbooks/adhoc/create_pv/create_pv.yaml
+++ b/playbooks/adhoc/create_pv/create_pv.yaml
@@ -1,5 +1,5 @@
---
-#example run:
+#example run:
# ansible-playbook -e "cli_volume_size=1" \
# -e "cli_device_name=/dev/xvdf" \
# -e "cli_hosttype=master" \
@@ -9,6 +9,8 @@
#
- name: Create a volume and attach it to master
hosts: localhost
+ connection: local
+ become: no
gather_facts: no
vars:
cli_volume_type: gp2
@@ -103,7 +105,7 @@
filesystem:
dev: "{{ cli_device_name }}"
fstype: ext4
-
+
- name: Mount the dev
mount:
name: "{{ pv_mntdir }}"
@@ -112,7 +114,7 @@
state: mounted
- name: chgrp g+rwXs
- file:
+ file:
path: "{{ pv_mntdir }}"
mode: 'g+rwXs'
recurse: yes
@@ -154,6 +156,6 @@
- debug: var=oc_output
- - fail:
+ - fail:
msg: "Failed to add {{ pv_template }} to master."
when: oc_output.rc != 0