Correzione task di installazione in maniera non sincrona.

This commit is contained in:
Emiliano Vavassori 2015-04-17 13:26:45 +02:00
parent 236b33f852
commit 173affc2bd
6 changed files with 30 additions and 35 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
*.swp
*.box

View File

@ -7,3 +7,14 @@ Per configurarlo:
$ ansible-playbook init.yml -u root --ask-pass \
-e "admin_sshkey=/path/to/id_rsa.pub"
$ ansible-playbook setup.yml
# Gestione con vagrant #
Nel repo è stata caricata una macchina virtuale già pronta con Virtualbox per
l'uso con [`vagrant`](https://www.vagrantup.com/).
È pertanto possibile creare una macchina virtuale automatica eseguendo i
seguenti comandi:
$ vagrant box add clearos6 ./clearos6-1.0.0.box
$ vagrant init clearos6

View File

@ -52,8 +52,6 @@
sudo: yes
register: first_repo_activate
when: centos_repo_installed|changed
async: 1800
poll: 60
tags: repo
- name: Attivo EPEL
@ -67,8 +65,6 @@
shell: yum clean all && yum repolist
sudo: yes
when: epel_installed|changed
async: 600
poll: 10
tags: repo
- name: Pulizia
@ -82,6 +78,4 @@
sudo: yes
when: ansible_os_family == 'ClearOS'
with_items: addin_pkgs
async: 3600
poll: 30
tags: pkg

View File

@ -1,8 +1,6 @@
---
- name: Aggiunta pacchetti specifici ClearOS
yum: name="{{ item }}" state=present
async: 1800
poll: 60
sudo: yes
with_items: clearos_pkgs
register: cleanos_install

View File

@ -1,9 +1,13 @@
---
- include: clearos_pkgs.yml
async: 180
poll: 30
tags: clearos
- include: centos_pkgs.yml
async: 180
poll: 30
tags: centos
- include: ansible.yml

View File

@ -1,3 +1,4 @@
---
centos_repo_files:
- CentOS-Base.repo
- CentOS-Debuginfo.repo
@ -12,40 +13,26 @@ centos_gpg_files:
- RPM-GPG-KEY-CentOS-Testing-6
addin_pkgs:
- git-svn
- git
- vim-enhanced
- screen
- sshpass
- ansible
clearos_pkgs:
- app-content-filter
- app-web-proxy
- app-proxy-report
- app-openldap-directory
- app-ntp
- app-configuration-backup
- app-firewall
- app-network
- app-users
- app-groups
- app-administrators
- app-password-policies
- app-accounts
- app-account-import
- app-services
- app-software-repository
- app-software-updates
- app-ssh-server
- app-dhcp
- app-flexshare
- app-process-viewer
- app-log-viewer
- app-process-viewer
- app-account-import
- app-ntp
- app-administrators
- app-password-policies
- app-user-profile
- app-openldap-directory
- app-print-server
- app-samba
- app-user-profile
- app-date
- app-marketplace
- app-registration
- app-dashboard
- app-base
- app-flexshare
- app-web-proxy
- app-proxy-report
- app-content-filter