forked from LibreSchool/server-config
Fixing triggering of interfaces in production. Configured squid defaults as determined.
This commit is contained in:
parent
04115d8b4a
commit
5b843819a6
@ -3,3 +3,4 @@ extnic: wan0
|
|||||||
intnic: lan0
|
intnic: lan0
|
||||||
force_regen_ca: false
|
force_regen_ca: false
|
||||||
force_ibay_shared: false
|
force_ibay_shared: false
|
||||||
|
development: false
|
||||||
|
@ -1,19 +1,24 @@
|
|||||||
- name: Configurazione scheda di rete esterna
|
- name: Configurazione scheda di rete esterna
|
||||||
shell: /sbin/e-smith/db networks setprop {{ extnic }} role red bootproto dhcp
|
shell: /sbin/e-smith/db networks setprop {{ extnic }} role red bootproto dhcp
|
||||||
|
when: development|bool
|
||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
- name: Configurazione scheda di rete interna
|
- 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 }}
|
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
|
become: yes
|
||||||
|
|
||||||
- name: Attivo configurazioni di rete
|
- name: Attivo configurazioni di rete
|
||||||
shell: /sbin/e-smith/signal-event interface-update
|
shell: /sbin/e-smith/signal-event interface-update
|
||||||
|
when: development|bool
|
||||||
become: yes
|
become: yes
|
||||||
|
|
||||||
- name: Configurazione rete trusted
|
- name: Configurazione rete trusted
|
||||||
shell: /sbin/e-smith/db networks set {{ ansible_local.domain.servernet }} network Description "Local LAN" Mask {{ ansible_local.domain.servernetmask }}
|
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
|
become: yes
|
||||||
|
|
||||||
- name: Modifico configurazioni
|
- name: Modifico configurazioni
|
||||||
shell: /sbin/e-smith/signal-event trusted-networks-modify
|
shell: /sbin/e-smith/signal-event trusted-networks-modify
|
||||||
|
when: development|bool
|
||||||
become: yes
|
become: yes
|
||||||
|
@ -190,10 +190,10 @@
|
|||||||
become: yes
|
become: yes
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
register: chk_squid
|
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
|
- 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
|
become: yes
|
||||||
when: chk_squid|changed
|
when: chk_squid|changed
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user