mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2024-12-22 02:50:19 +01:00
Fix ports declaration. Allow bind to localhost. Style fix.
This commit is contained in:
parent
6e3373de3b
commit
c6d921ce37
2 changed files with 3 additions and 3 deletions
|
@ -49,8 +49,8 @@ apache_mods_disabled: []
|
||||||
# Set initial apache state. Recommended values: `started` or `stopped`
|
# Set initial apache state. Recommended values: `started` or `stopped`
|
||||||
apache_state: started
|
apache_state: started
|
||||||
|
|
||||||
# Set initial apache service status. Recommended values: `yes` or `no`
|
# Set initial apache service status. Recommended values: `true` or `false`
|
||||||
apache_enabled: yes
|
apache_enabled: true
|
||||||
|
|
||||||
# Set apache state when configuration changes are made. Recommended values:
|
# Set apache state when configuration changes are made. Recommended values:
|
||||||
# `restarted` or `reloaded`
|
# `restarted` or `reloaded`
|
||||||
|
|
|
@ -4,5 +4,5 @@ apache_default_vhost_filename: 000-default.conf
|
||||||
apache_ports_configuration_items:
|
apache_ports_configuration_items:
|
||||||
- {
|
- {
|
||||||
regexp: "^Listen ",
|
regexp: "^Listen ",
|
||||||
line: "Listen {{ apache_listen_port }}"
|
line: "Listen {{ (apache_listen_ip == '*') | ternary('', apache_listen_ip+':')}}{{ apache_listen_port }}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue