summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Prabhu <sprabhu@redhat.com>2021-02-18 00:08:56 +0000
committerAnoop C S <anoopcs@cryptolab.net>2021-03-23 16:47:53 +0530
commitaae3bc1251668170aa48b3730f99c42d372d19c4 (patch)
treea7282bd90acdb9f67cd318da8b72c8574eac8231
parent1a6283a687787a569b978d62492d7b5db5f1b678 (diff)
downloadsamba-integration-aae3bc1251668170aa48b3730f99c42d372d19c4.tar.gz
samba-integration-aae3bc1251668170aa48b3730f99c42d372d19c4.tar.xz
samba-integration-aae3bc1251668170aa48b3730f99c42d372d19c4.zip
Add distro specific actions for hosts.update
Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
-rw-r--r--vagrant/hosts.update.yml9
-rw-r--r--vagrant/roles/hosts.update/tasks/centos7.yml5
-rw-r--r--vagrant/roles/hosts.update/tasks/main.yml3
3 files changed, 12 insertions, 5 deletions
diff --git a/vagrant/hosts.update.yml b/vagrant/hosts.update.yml
index cf569d3..c6b7577 100644
--- a/vagrant/hosts.update.yml
+++ b/vagrant/hosts.update.yml
@@ -4,8 +4,7 @@
- hosts: all
become: yes
become_method: sudo
- tasks:
- - name: Perform a complete update
- yum:
- name: '*'
- state: latest
+ vars_files:
+ - ansible/distro-vars.yml
+ roles:
+ - hosts.update
diff --git a/vagrant/roles/hosts.update/tasks/centos7.yml b/vagrant/roles/hosts.update/tasks/centos7.yml
new file mode 100644
index 0000000..0e9ed93
--- /dev/null
+++ b/vagrant/roles/hosts.update/tasks/centos7.yml
@@ -0,0 +1,5 @@
+- name: Perform a complete update
+ yum:
+ name: '*'
+ state: latest
+
diff --git a/vagrant/roles/hosts.update/tasks/main.yml b/vagrant/roles/hosts.update/tasks/main.yml
new file mode 100644
index 0000000..16a7d3b
--- /dev/null
+++ b/vagrant/roles/hosts.update/tasks/main.yml
@@ -0,0 +1,3 @@
+- name: Run distro specific tasks for host.update
+ include_tasks:
+ file: "{{ distro.actions_file }}"