simplified port config

This commit is contained in:
AnsibleGuy 2021-12-05 23:12:54 +01:00
parent c8294d02f4
commit 0c2556e1d4
1 changed files with 2 additions and 5 deletions

View File

@ -13,12 +13,9 @@
tags: [sites, certs]
- name: "Apache | Debian | Site '{{ name }}' | Configuring listen-ports"
ansible.builtin.blockinfile:
ansible.builtin.lineinfile:
path: '/etc/apache2/ports.conf'
block: |
Listen {{ port }}
marker: "# {mark} ANSIBLE MANAGED BLOCK - port '{{ port }}'"
insertafter: '# /etc/apache2/sites-enabled/000-default.conf'
line: "Listen {{ port }}"
ignore_errors: true
when:
- port != 80