2015-04-14 00:17:01 +00:00
|
|
|
---
|
|
|
|
|
2015-04-20 00:49:11 +00:00
|
|
|
- name: Verifica abilitazione repo Extra
|
|
|
|
shell: yum repolist
|
|
|
|
register: check_epel
|
|
|
|
failed_when: "'Extra Packages for Enterprise Linux 6' not in check_epel.stdout"
|
2015-04-16 19:19:30 +00:00
|
|
|
ignore_errors: yes
|
2015-04-14 00:17:01 +00:00
|
|
|
|
2015-04-20 00:49:11 +00:00
|
|
|
- name: Installo epel-release
|
|
|
|
yum: name=epel-release state=present
|
2015-04-15 12:31:28 +00:00
|
|
|
sudo: yes
|
2015-07-30 21:00:35 +00:00
|
|
|
when: check_epel|failed
|
2015-04-20 00:49:11 +00:00
|
|
|
register: epel_installed
|
2015-07-30 21:00:35 +00:00
|
|
|
ignore_errors: yes
|
2015-04-14 00:17:01 +00:00
|
|
|
|
2015-04-20 00:49:11 +00:00
|
|
|
- name: Installo epel-release da URL
|
|
|
|
yum:
|
|
|
|
name: "http://dl.fedoraproject.org/pub/epel/6/{{ ansible_architecture }}/epel-release-6-8.noarch.rpm"
|
|
|
|
state: present
|
2015-04-15 12:31:28 +00:00
|
|
|
sudo: yes
|
2015-07-30 21:00:35 +00:00
|
|
|
when: epel_installed|failed
|
2015-04-20 00:49:11 +00:00
|
|
|
register: rpm_epel_installed
|
2015-04-14 00:17:01 +00:00
|
|
|
|
2015-04-20 00:49:11 +00:00
|
|
|
- name: Abilito il repo EPEL
|
|
|
|
shell: yum-config-manager --enable epel
|
2015-04-15 12:31:28 +00:00
|
|
|
sudo: yes
|
2015-04-21 07:53:26 +00:00
|
|
|
when: epel_installed|changed or rpm_epel_installed|changed
|
|
|
|
changed_when: "'[epel]' in epel_enabled.stdout and epel_enabled.rc == 0"
|
2015-04-20 15:44:33 +00:00
|
|
|
register: epel_enabled
|
2015-04-14 00:17:01 +00:00
|
|
|
|
2015-04-20 00:49:11 +00:00
|
|
|
- name: Pulizia e ricaricam. repo
|
2015-04-14 00:17:01 +00:00
|
|
|
shell: yum clean all && yum repolist
|
2015-04-15 12:31:28 +00:00
|
|
|
sudo: yes
|
2015-06-20 02:32:22 +00:00
|
|
|
when: epel_enabled|changed
|
2015-04-15 16:12:38 +00:00
|
|
|
tags: repo
|
2015-04-16 16:23:01 +00:00
|
|
|
|
2015-04-21 07:53:26 +00:00
|
|
|
- name: Aggiorno il sistema
|
|
|
|
yum: name=* state=latest
|
|
|
|
sudo: yes
|
|
|
|
tags: upgrade
|
|
|
|
|
2015-04-20 00:49:11 +00:00
|
|
|
- name: Installo pacchetti addizionali
|
2015-04-16 16:23:01 +00:00
|
|
|
yum: name={{ item }} state=present
|
|
|
|
sudo: yes
|
|
|
|
with_items: addin_pkgs
|
|
|
|
tags: pkg
|
2015-05-05 23:32:39 +00:00
|
|
|
|
|
|
|
# Fix per un problema con uno script di Nethserver
|
|
|
|
- name: Installo l'ultima versione di perl-Authen-SASL
|
|
|
|
yum:
|
|
|
|
name: "http://rpm.mag-sol.com/Centos/6/{{ ansible_architecture }}/perl-Authen-SASL-2.16-1.el6.noarch.rpm"
|
|
|
|
state: present
|
|
|
|
sudo: yes
|