diff options
author | Alan Pearce | 2017-03-17 09:48:24 +0100 |
---|---|---|
committer | Alan Pearce | 2017-03-17 09:48:24 +0100 |
commit | 397ce671bb028802d528faf8811101e08557e527 (patch) | |
tree | 6a3b0004c7fcbe334f05a50aad483316c6577887 /vagrant/.vagrant.d/ansible/centos.yml | |
parent | db6903e6fab9cff359a530ca2eee6ba3c7e44525 (diff) | |
download | dotfiles-397ce671bb028802d528faf8811101e08557e527.tar.lz dotfiles-397ce671bb028802d528faf8811101e08557e527.tar.zst dotfiles-397ce671bb028802d528faf8811101e08557e527.zip |
Re-structure tags to GNU stow format
Diffstat (limited to 'vagrant/.vagrant.d/ansible/centos.yml')
-rw-r--r-- | vagrant/.vagrant.d/ansible/centos.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/vagrant/.vagrant.d/ansible/centos.yml b/vagrant/.vagrant.d/ansible/centos.yml new file mode 100644 index 0000000..1a6759a --- /dev/null +++ b/vagrant/.vagrant.d/ansible/centos.yml @@ -0,0 +1,31 @@ +- name: Ensure EPEL repository package is present + register: centos_repos + get_url: + url: "{{ item.url }}" + dest: "/root/{{ item.dest }}" + with_items: + - url: http://lon.mirror.rackspace.com/ius/stable/CentOS/6/x86_64/epel-release-6-5.noarch.rpm + dest: epel-repo.rpm + - url: http://lon.mirror.rackspace.com/ius/stable/CentOS/6/x86_64/ius-release-1.0-11.ius.centos6.noarch.rpm + dest: ius-repo.rpm + +- name: Fetch utilities repo + get_url: + url: http://download.opensuse.org/repositories/utilities/CentOS_6/utilities.repo + dest: /etc/yum.repos.d/utilities.repo + +- name: Ensure IUS and EPEL repositories are installed + when: centos_repos.changed + yum: + name: "{{ item }}" + state: installed + with_items: + - /root/epel-repo.rpm + - /root/ius-repo.rpm + + +- name: Ensure that tools are installed + with_items: packages + yum: + name: "{{ item }}" + state: present |