forked from LibreSchool/server-config
Tentativo di gestione dell'installazione dei pacchetti clearos.
This commit is contained in:
parent
7958728837
commit
7af7296943
2
hosts
2
hosts
@ -1,2 +1,2 @@
|
|||||||
[server]
|
[server]
|
||||||
pdc ansible_ssh_host=10.0.0.1 ansible_ssh_user=amgmt
|
10.0.0.1 ansible_ssh_user=amgmt
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Verifica installazione pacchetti aggiuntivi
|
- name: Verifica installazione pacchetti aggiuntivi
|
||||||
shell: rpm -q {{ item }}
|
yum: name={{ item }} state=present
|
||||||
sudo: yes
|
sudo: yes
|
||||||
with_items: addins_pkg
|
with_items: addins_pkgs
|
||||||
register: check_pkg
|
register: check_pkg
|
||||||
changed_when: check_pkg.rc != 0
|
ignore_errors: yes
|
||||||
tags: pkg
|
tags: pkg
|
||||||
|
|
||||||
- name: Verifica configurazione CentOS 6
|
- name: Verifica configurazione CentOS 6
|
||||||
file: name=/etc/yum.repos.d/{{ item }} state=file
|
shell: test -f /etc/yum.repos.d/{{ item }}
|
||||||
sudo: yes
|
sudo: yes
|
||||||
with_items: centos_repo_files
|
with_items: centos_repo_files
|
||||||
when: check_pkg|changed
|
when: check_pkg|failed
|
||||||
register: check_repos
|
register: check_repos
|
||||||
tags: repo
|
tags: repo
|
||||||
|
|
||||||
@ -51,8 +51,8 @@
|
|||||||
sudo: yes
|
sudo: yes
|
||||||
register: first_repo_activate
|
register: first_repo_activate
|
||||||
when: centos_repo_installed|changed
|
when: centos_repo_installed|changed
|
||||||
async: 600
|
async: 1800
|
||||||
poll: 10
|
poll: 60
|
||||||
tags: repo
|
tags: repo
|
||||||
|
|
||||||
- name: Attivo EPEL
|
- name: Attivo EPEL
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Aggiunta pacchetti specifici ClearOS
|
- name: Aggiunta pacchetti specifici ClearOS
|
||||||
yum: name={{ item }} state=present
|
yum: name="{{ item }}" state=present
|
||||||
|
async: 1800
|
||||||
|
poll: 60
|
||||||
sudo: yes
|
sudo: yes
|
||||||
with_items: clearos_pkgs
|
with_items: clearos_pkgs
|
||||||
async: 3600
|
|
||||||
poll: 30
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user