Browse Source

adding apache2 handler

master
theonlydoo 9 years ago
parent
commit
ef6bab919c
2 changed files with 9 additions and 5 deletions
  1. +4
    -0
      roles/wallabag/handlers/main.yml
  2. +5
    -5
      roles/wallabag/tasks/wallabag.yml

+ 4
- 0
roles/wallabag/handlers/main.yml View File

@ -1,6 +1,10 @@
- name: import wallabag sql
shell: PGPASSWORD='{{ wallabag_db_password }}' psql -h localhost -d {{ wallabag_db_database }} -U {{ wallabag_db_username }} -f /var/www/wallabag/install/postgres.sql --set ON_ERROR_STOP=1
notify: remove install folder
#'
- name: restart apache2
service: name=apache2 state=restarted
- name: remove install folder
file: path=/var/www/wallabag/install state=absent

+ 5
- 5
roles/wallabag/tasks/wallabag.yml View File

@ -21,11 +21,11 @@
- php5-pgsql
- php5-tidy
- name: Import database user template
template: src=root-wallabag.sql.j2 dest=/root/wallabag.sql
- name: Import sql file for account and db creation
shell: mysql < /root/wallabag.sql
#- name: Import database user template
# template: src=root-wallabag.sql.j2 dest=/root/wallabag.sql
#
#- name: Import sql file for account and db creation
# shell: mysql < /root/wallabag.sql
- name: Import wallabag sql

Loading…
Cancel
Save