diff options
author | Wesley Hearn <wesley.s.hearn@gmail.com> | 2016-01-04 09:42:43 -0500 |
---|---|---|
committer | Wesley Hearn <wesley.s.hearn@gmail.com> | 2016-01-04 09:42:43 -0500 |
commit | f1951b2ca60536e81c9ff26a30b1cfbaf5ca12e9 (patch) | |
tree | 1c304d5daebfb1780ca26973319b4427e2a40b54 /playbooks/common/openshift-nfs/service.yml | |
parent | fb1b9ff7d3293c821a8569ae95dcc8a98dfbf967 (diff) | |
parent | 0c18c742c60e5c4acd609d682caae7f7ce8840cd (diff) | |
download | openshift-f1951b2ca60536e81c9ff26a30b1cfbaf5ca12e9.tar.gz openshift-f1951b2ca60536e81c9ff26a30b1cfbaf5ca12e9.tar.bz2 openshift-f1951b2ca60536e81c9ff26a30b1cfbaf5ca12e9.tar.xz openshift-f1951b2ca60536e81c9ff26a30b1cfbaf5ca12e9.zip |
Merge pull request #951 from abutcher/nfs
NFS for registry storage
Diffstat (limited to 'playbooks/common/openshift-nfs/service.yml')
-rw-r--r-- | playbooks/common/openshift-nfs/service.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/playbooks/common/openshift-nfs/service.yml b/playbooks/common/openshift-nfs/service.yml new file mode 100644 index 000000000..20c8ca248 --- /dev/null +++ b/playbooks/common/openshift-nfs/service.yml @@ -0,0 +1,18 @@ +--- +- name: Populate g_service_nfs host group if needed + hosts: localhost + gather_facts: no + tasks: + - fail: msg="new_cluster_state is required to be injected in this playbook" + when: new_cluster_state is not defined + + - name: Evaluate g_service_nfs + add_host: name={{ item }} groups=g_service_nfs + with_items: oo_host_group_exp | default([]) + +- name: Change state on nfs instance(s) + hosts: g_service_nfs + connection: ssh + gather_facts: no + tasks: + - service: name=nfs-server state="{{ new_cluster_state }}" |