forked from ISTI-ansible-roles/ansible-roles
library/roles/revive-adserver: some fixes
This commit is contained in:
parent
e1180b39a7
commit
a0d7feb5c1
|
@ -9,6 +9,9 @@ revive_ad_dir: '{{ revive_ad_install_dir }}/revive-adserver/'
|
||||||
revive_ad_dest_dir: '{{ revive_ad_dir }}/ad'
|
revive_ad_dest_dir: '{{ revive_ad_dir }}/ad'
|
||||||
revive_ad_images_dest_dir: '{{ revive_ad_dir }}/images'
|
revive_ad_images_dest_dir: '{{ revive_ad_dir }}/images'
|
||||||
revive_ad_user: revive
|
revive_ad_user: revive
|
||||||
|
revive_maintenance_path: '{{ revive_ad_dest_dir }}/scripts/maintenance/maintenance.php'
|
||||||
|
revive_automatic_maintenance: True
|
||||||
|
revive_domain: example.com
|
||||||
|
|
||||||
revive_ad_php_modules:
|
revive_ad_php_modules:
|
||||||
- php-xml-parser
|
- php-xml-parser
|
||||||
|
|
|
@ -77,3 +77,12 @@
|
||||||
- php
|
- php
|
||||||
- revive
|
- revive
|
||||||
- revive_adserver
|
- revive_adserver
|
||||||
|
|
||||||
|
- name: Install the cron job needed for the automatic maintenance
|
||||||
|
template: src=revive_maintenance_cron.j2 dest=/etc/cron.hourly/revive_adserver_maintenance owner=root group=root mode=0555
|
||||||
|
when: revive_automatic_maintenance
|
||||||
|
tags:
|
||||||
|
- php
|
||||||
|
- revive
|
||||||
|
- revive_adserver
|
||||||
|
- revive_cron
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
exec /usr/bin/php {{ revive_maintenance_path }} {{ revive_domain }} > /var/log/revive_adserver_maintenance.log 2>&1
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Reference in New Issue