Skip to content
Snippets Groups Projects
Commit 6225efea authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-playbooks/general#85 Linting [skip-ci]

parent fac5abe7
No related branches found
No related tags found
No related merge requests found
......@@ -2,4 +2,6 @@
# file: roles/owncloud/handlers/main.yml
- name: ownCloud | Restart Apache
service: name=apache2 state=restarted
service:
name: apache2
state: restarted
......@@ -9,45 +9,48 @@
- block:
- name: ownCloud | Install Public Repo Key
apt_key:
url='http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_12.04/Release.key'
state=present
- name: ownCloud | Add ownCloud Repository To Apt
copy:
content='deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/xUbuntu_12.04/ /'
dest='/etc/apt/sources.list.d/owncloud.list'
mode='644'
- name: ownCloud | Install the package
apt:
pkg=owncloud
state=present
update_cache=yes
- name: ownCloud | Configuration file for apache
template: src=etc-apache2-sites-available-owncloud
dest=/etc/apache2/sites-available/owncloud
- name: ownCloud | Enable the ownCloud site for Apache
command: a2ensite owncloud creates=/etc/apache2/sites-enabled/owncloud
notify:
- ownCloud | Restart Apache
- name: ownCloud | Install cron job
cron:
name='ownCloud cron'
month='{{ owncloud_cron_core.month|default(omit) }}'
day='{{ owncloud_cron_core.day|default(omit) }}'
weekday='{{ owncloud_cron_core.weekday|default(omit) }}'
hour='{{ owncloud_cron_core.hour|default(omit) }}'
minute='{{ owncloud_cron_core.minute|default(omit) }}'
job='php /var/www/owncloud/cron.php >/dev/null 2>&1'
user='www-data'
disabled='{{ crons_disabled|default(false) }}'
when: owncloud_cron_core.active
tags:
- cron
- name: ownCloud | Install Public Repo Key
apt_key:
url: http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_12.04/Release.key
state: present
- name: ownCloud | Add ownCloud Repository To Apt
copy:
content: deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/xUbuntu_12.04/ /
dest: /etc/apt/sources.list.d/owncloud.list
mode: 0644
- name: ownCloud | Install the package
apt:
pkg: owncloud
state: present
update_cache: yes
- name: ownCloud | Configuration file for apache
template:
src: etc-apache2-sites-available-owncloud
dest: /etc/apache2/sites-available/owncloud
- name: ownCloud | Enable the ownCloud site for Apache
command: a2ensite owncloud
args:
creates: /etc/apache2/sites-enabled/owncloud
notify:
- ownCloud | Restart Apache
- name: ownCloud | Install cron job
cron:
name: ownCloud cron
month: '{{ owncloud_cron_core.month|default(omit) }}'
day: '{{ owncloud_cron_core.day|default(omit) }}'
weekday: '{{ owncloud_cron_core.weekday|default(omit) }}'
hour: '{{ owncloud_cron_core.hour|default(omit) }}'
minute: '{{ owncloud_cron_core.minute|default(omit) }}'
job: php /var/www/owncloud/cron.php >/dev/null 2>&1
user: www-data
disabled: '{{ crons_disabled|default(false) }}'
when: owncloud_cron_core.active
tags:
- cron
when: not excluded_roles or "owncloud" not in excluded_roles
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment