blob: 1a6759a68a6f572fb31d8c5cf1991938a35ac4d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
|