mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-04-09 12:42:10 +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
|
||||
|
||||
Reference in New Issue
Block a user