diff options
Diffstat (limited to 'onap-oom-configure.yaml')
-rw-r--r-- | onap-oom-configure.yaml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/onap-oom-configure.yaml b/onap-oom-configure.yaml new file mode 100644 index 0000000..569de7f --- /dev/null +++ b/onap-oom-configure.yaml @@ -0,0 +1,25 @@ +--- +- hosts: kube-node + gather_facts: "no" + tasks: + - name: gather facts + setup: + when: gather_nodes_fact + +- hosts: kube-master + run_once: "yes" + vars_files: + - "vars/idf.yml" + - "vars/pdf.yml" + pre_tasks: + - name: check if openstack_infos exists + ansible.builtin.stat: + path: "{{ base_dir }}/vars/openstack_infos.yml" + delegate_to: localhost + register: stat + + - name: include user clouds info + include_vars: "{{ base_dir }}/vars/openstack_infos.yml" + when: stat.stat.exists + roles: + - oom_configure |