aboutsummaryrefslogtreecommitdiffstats
path: root/onap-oom-postinstall.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'onap-oom-postinstall.yaml')
-rw-r--r--onap-oom-postinstall.yaml25
1 files changed, 25 insertions, 0 deletions
diff --git a/onap-oom-postinstall.yaml b/onap-oom-postinstall.yaml
new file mode 100644
index 0000000..1f203f3
--- /dev/null
+++ b/onap-oom-postinstall.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/ddf.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_generate_artifacts