library/roles/revive-adserver: some fixes

This commit is contained in:
Andrea Dell'Amico 2015-07-14 03:01:30 +02:00
parent e1180b39a7
commit a0d7feb5c1
3 changed files with 17 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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