Add owncloud and prevent nginx from dotdeb

This commit is contained in:
Emilien Mantel
2016-08-10 21:29:03 +02:00
parent 8fb3829860
commit 26c93c9315
8 changed files with 105 additions and 17 deletions

View File

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

View File

@@ -8,6 +8,10 @@
apt_key: url='http://www.dotdeb.org/dotdeb.gpg' state=present
- name: APT_REPOSITORY | Install dotdeb (PHP 7)
apt_repository: repo='deb http://packages.dotdeb.org {{ ansible_distribution_release }} all' state=present
- name: LINEFILEFILE | Dotdeb priority (prevent install nginx from dotdeb)
copy: >
content="Package: *\nPin: release o=packages.dotdeb.org\nPin-Priority: 100"
dest=/etc/apt/preferences
when: ansible_distribution_release == 'jessie'
- name: APT | Install needed packages

View File

@@ -15,6 +15,7 @@
int_ansible_ssl_dir: '/etc/ansible-ssl'
# Role vars
nginx_worker_processes: 1 # Ansible+FreeBSD can't detect CPU number
nginx_apt_package: 'nginx-extras'
nginx_backports: true
nginx_php5: true
nginx_php7: true
@@ -189,6 +190,8 @@
template: '_base'
ssl_name: 'test-ssl.local'
redirect_https: true
- name: 'owncloud.local'
template: '_owncloud'
nginx_dh_length: 1024
roles:
- ../../