Commit 59dce007 authored by Jonathan Blum's avatar Jonathan Blum

test only when vhost is updated

parent 66ef6ddb
......@@ -20,6 +20,7 @@
owner: "{{ apache_user }}"
group: "{{ apache_user }}"
mode: 0640
register: vhost_updated
- name: PRIVATEBIN | INSTALL | a2ensite {{ privatebin_url }}
command: a2ensite {{ privatebin_url }}
......@@ -28,5 +29,6 @@
- name: PRIVATEBIN | INSTALL | test configuration of apache
command: apache2ctl configtest
when: vhost_updated.changed
notify:
- restart apache
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment