[+] debian apache2 needs to have conf enabled when making this change
This commit is contained in:
parent
3f3e734cd7
commit
f80a06260b
@ -12,6 +12,15 @@ a2enmod remoteip:
|
|||||||
- watch_in:
|
- watch_in:
|
||||||
- module: apache-restart
|
- module: apache-restart
|
||||||
|
|
||||||
|
a2enconf remoteip:
|
||||||
|
cmd.run:
|
||||||
|
- unless: ls /etc/apache2/mods-enabled/remoteip.load
|
||||||
|
- order: 255
|
||||||
|
- require:
|
||||||
|
- pkg: apache
|
||||||
|
- watch_in:
|
||||||
|
- module: apache-reload
|
||||||
|
|
||||||
/etc/apache2/conf-available/remoteip.conf:
|
/etc/apache2/conf-available/remoteip.conf:
|
||||||
file.managed:
|
file.managed:
|
||||||
- template: jinja
|
- template: jinja
|
||||||
@ -21,5 +30,4 @@ a2enmod remoteip:
|
|||||||
- pkg: apache
|
- pkg: apache
|
||||||
- watch_in:
|
- watch_in:
|
||||||
- service: apache
|
- service: apache
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user