summaryrefslogtreecommitdiffstats
path: root/roles/contiv/tasks/packageManagerInstall.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/contiv/tasks/packageManagerInstall.yml')
-rw-r--r--roles/contiv/tasks/packageManagerInstall.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/contiv/tasks/packageManagerInstall.yml b/roles/contiv/tasks/packageManagerInstall.yml
new file mode 100644
index 000000000..2eff1b85f
--- /dev/null
+++ b/roles/contiv/tasks/packageManagerInstall.yml
@@ -0,0 +1,12 @@
+---
+- name: Package Manager | Init the did_install fact
+ set_fact:
+ did_install: false
+
+- include: pkgMgrInstallers/centos-install.yml
+ when: ansible_distribution == "CentOS" and not is_atomic
+
+- name: Package Manager | Set fact saying we did CentOS package install
+ set_fact:
+ did_install: true
+ when: ansible_distribution == "CentOS"