Ubuntu 18.04 support #70

Closed
Ghost wants to merge 38 commits from ubuntu into unstable
3 changed files with 27 additions and 1 deletions
Showing only changes of commit 8d352f100e - Show all commits

View file

@ -37,6 +37,16 @@ minifirewall_smtp_ok: Null
minifirewall_smtp_secure_ok: Null
minifirewall_ntp_ok: Null
minifirewall_default_debian_http_sites:
- security.debian.org
- security-cdn.debian.org
- volatile.debian.org
- backports.debian.org
minifirewall_default_ubuntu_http_sites:
- archive.ubuntu.com
- security.ubuntu.com
minifirewall_autostart: False
minifirewall_restart_if_needed: True
minifirewall_restart_force: False

View file

@ -50,7 +50,7 @@ DNSSERVEURS='0.0.0.0/0'
# HTTP authorizations
# (you can use DNS names but set cron to reload minifirewall regularly)
# (if you have HTTP proxy, set 0.0.0.0/0)
HTTPSITES='security.debian.org security-cdn.debian.org pub.evolix.net volatile.debian.org mirror.evolix.org backports.debian.org hwraid.le-vert.net antispam00.evolix.org spamassassin.apache.org sa-update.space-pro.be sa-update.secnap.net www.sa-update.pccc.com sa-update.dnswl.org'
HTTPSITES='pub.evolix.net mirror.evolix.org hwraid.le-vert.net antispam00.evolix.org spamassassin.apache.org sa-update.space-pro.be sa-update.secnap.net www.sa-update.pccc.com sa-update.dnswl.org'
# HTTPS authorizations
HTTPSSITES='0.0.0.0/0'

View file

@ -114,6 +114,22 @@
create: no
when: minifirewall_dns_servers is not none
- name: Configure HTTPSITES for debian
lineinfile:
dest: "{{ minifirewall_main_file }}"
line: "HTTPSITES='{{ minifirewall_default_debian_http_sites | join(' ') }}'"
regexp: "HTTPSITES='.*'"
create: no
when: ansible_distribution == "Debian"
- name: Configure HTTPSITES for ubuntu
lineinfile:
dest: "{{ minifirewall_main_file }}"
line: "HTTPSITES='{{ minifirewall_default_ubuntu_http_sites | join(' ') }}'"
regexp: "HTTPSITES='.*'"
create: no
when: ansible_distribution == "Ubuntu"
- name: Configure HTTPSITES
lineinfile:
dest: "{{ minifirewall_main_file }}"