diff options
author | Sachin Prabhu <sprabhu@redhat.com> | 2021-02-18 00:08:56 +0000 |
---|---|---|
committer | Anoop C S <anoopcs@cryptolab.net> | 2021-03-23 16:47:53 +0530 |
commit | aae3bc1251668170aa48b3730f99c42d372d19c4 (patch) | |
tree | a7282bd90acdb9f67cd318da8b72c8574eac8231 | |
parent | 1a6283a687787a569b978d62492d7b5db5f1b678 (diff) | |
download | samba-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.yml | 9 | ||||
-rw-r--r-- | vagrant/roles/hosts.update/tasks/centos7.yml | 5 | ||||
-rw-r--r-- | vagrant/roles/hosts.update/tasks/main.yml | 3 |
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 }}" |