mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-02-24 09:03:29 +07:00
Add owncloud and prevent nginx from dotdeb
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
- ../../
|
||||
|
||||
Reference in New Issue
Block a user