simplified port config
This commit is contained in:
parent
c8294d02f4
commit
0c2556e1d4
|
|
@ -13,12 +13,9 @@
|
||||||
tags: [sites, certs]
|
tags: [sites, certs]
|
||||||
|
|
||||||
- name: "Apache | Debian | Site '{{ name }}' | Configuring listen-ports"
|
- name: "Apache | Debian | Site '{{ name }}' | Configuring listen-ports"
|
||||||
ansible.builtin.blockinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: '/etc/apache2/ports.conf'
|
path: '/etc/apache2/ports.conf'
|
||||||
block: |
|
line: "Listen {{ port }}"
|
||||||
Listen {{ port }}
|
|
||||||
marker: "# {mark} ANSIBLE MANAGED BLOCK - port '{{ port }}'"
|
|
||||||
insertafter: '# /etc/apache2/sites-enabled/000-default.conf'
|
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
when:
|
when:
|
||||||
- port != 80
|
- port != 80
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue