Implement livebox.

This commit is contained in:
Andreas B. Mundt 2022-06-25 10:15:19 +02:00 committed by Andreas B. Mundt
parent d7d767fea9
commit de2a473cde
5 changed files with 190 additions and 3 deletions

View file

@ -23,6 +23,10 @@
replace: 'd-i mirror/http/proxy string http://{{ ansible_hostname }}:3142/'
when: preseedcfg.stat.exists
- name: test if firewalld is available
stat: path=/usr/sbin/firewalld
register: firewalld
- name: allow apt-cacher-ng service in firewalld
firewalld:
zone: internal
@ -30,11 +34,11 @@
permanent: true
immediate: true
state: enabled
when: not run_in_installer|default(false)|bool
when: not run_in_installer|default(false)|bool and firewalld.stat.exists
- name: allow apt-cacher-ng service in firewalld, offline
command: "firewall-offline-cmd --zone=internal --add-port=3142/tcp"
when: run_in_installer|default(false)|bool
when: run_in_installer|default(false)|bool and firewalld.stat.exists
- name: flush handler to make apt-cacher available
meta: flush_handlers