[WIP] split pre/post tasks related to OS version

This commit is contained in:
Emilien Mantel
2016-03-05 15:46:54 +01:00
parent 791832f6d1
commit 8edd69547d
5 changed files with 39 additions and 32 deletions

View File

@@ -0,0 +1,10 @@
---
- name: APT | Install web apps
apt: pkg={{ item }} state=present
with_items:
- nagios3
- backuppc
- name: SERVICE | Ensure backuppc is started
service: name=backuppc state=started

View File

@@ -0,0 +1,2 @@
---

View File

@@ -0,0 +1,18 @@
---
- name: APT_REPOSITORY | Install backports
apt_repository: repo='deb http://httpredir.debian.org/debian {{ ansible_distribution_release }}-backports main' state=present
- name: APT | Install needed packages
apt: pkg={{ item }} update_cache=yes cache_valid_time=3600 state=present
with_items:
- php5-fpm
- curl
- fcgiwrap
- name: SERVICE | Force start services
service: name={{ item }} state=started
register: sf
with_items:
- php5-fpm
- fcgiwrap

View File

@@ -0,0 +1,5 @@
---
- name: SET_FACT | FreeBSD web user
set_fact:
nginx_user: 'www'