diff options
-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 }}" |