forked from evolix/ansible-roles
evoacme: better validation for Apache
This commit is contained in:
parent
935026c973
commit
931de64086
|
@ -1,11 +1,11 @@
|
||||||
- name: newaliases
|
- name: newaliases
|
||||||
shell: newaliases
|
command: newaliases
|
||||||
|
|
||||||
- name: Test Apache conf
|
- name: Test Apache conf
|
||||||
shell: apache2ctl -t
|
shell: apache2ctl -t
|
||||||
notify: "Reload Apache conf"
|
notify: "Reload Apache conf"
|
||||||
|
|
||||||
- name: Reload Apache conf
|
- name: reload apache2
|
||||||
service:
|
service:
|
||||||
name=apache2
|
name: apache2
|
||||||
state=reloaded
|
state: reloaded
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
notify: "Test Apache conf"
|
validate: apache2ctl -t
|
||||||
|
notify: reload apache2
|
||||||
|
|
||||||
- name: Enable acme challenge conf
|
- name: Enable acme challenge conf
|
||||||
file:
|
file:
|
||||||
|
@ -14,4 +15,5 @@
|
||||||
state: link
|
state: link
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
notify: "Test Apache conf"
|
validate: apache2ctl -t
|
||||||
|
notify: reload apache2
|
||||||
|
|
Loading…
Reference in a new issue