Fixing triggering of interfaces in production. Configured squid defaults as determined.

This commit is contained in:
Emiliano Vavassori 2016-02-21 00:19:27 +01:00
parent 04115d8b4a
commit 5b843819a6
3 changed files with 8 additions and 2 deletions

View File

@ -3,3 +3,4 @@ extnic: wan0
intnic: lan0
force_regen_ca: false
force_ibay_shared: false
development: false

View File

@ -1,19 +1,24 @@
- name: Configurazione scheda di rete esterna
shell: /sbin/e-smith/db networks setprop {{ extnic }} role red bootproto dhcp
when: development|bool
become: yes
- name: Configurazione scheda di rete interna
shell: /sbin/e-smith/db networks setprop {{ intnic }} role green ipaddr {{ ansible_local.domain.serverip }} netmask {{ ansible_local.domain.servernetmask }}
when: development|bool
become: yes
- name: Attivo configurazioni di rete
shell: /sbin/e-smith/signal-event interface-update
when: development|bool
become: yes
- name: Configurazione rete trusted
shell: /sbin/e-smith/db networks set {{ ansible_local.domain.servernet }} network Description "Local LAN" Mask {{ ansible_local.domain.servernetmask }}
when: development|bool
become: yes
- name: Modifico configurazioni
shell: /sbin/e-smith/signal-event trusted-networks-modify
when: development|bool
become: yes

View File

@ -190,10 +190,10 @@
become: yes
ignore_errors: yes
register: chk_squid
changed_when: "'GreenMode=transparent_ssl' not in chk_squid.stdout"
changed_when: "'GreenMode=transparent' not in chk_squid.stdout"
- name: Configurazione squid
shell: /sbin/e-smith/db configuration setprop squid BlueMode transparent_ssl GreenMode transparent_ssl PortBlock enabled status enabled DiskCache enabled DiskCacheSize 500
shell: /sbin/e-smith/db configuration setprop squid BlueMode transparent GreenMode transparent PortBlock disabled status enabled DiskCache enabled DiskCacheSize 2000
become: yes
when: chk_squid|changed