mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
helper scripts
This commit is contained in:
parent
df5618c3a4
commit
6aeaeed6ab
3 changed files with 17 additions and 0 deletions
|
@ -205,6 +205,17 @@
|
|||
group: root
|
||||
mode: 0755
|
||||
|
||||
- name: Install iiab-internet-on|off
|
||||
template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
with_items:
|
||||
- { src: 'gateway/iiab-internet-on', dest: '/usr/bin/iiab-internet-on' }
|
||||
- { src: 'gateway/iiab-internet-off', dest: '/usr/bin/iiab-internet-off' }
|
||||
|
||||
- name: Add 'squid' variable values to {{ iiab_ini_file }}
|
||||
ini_file:
|
||||
path: "{{ iiab_ini_file }}"
|
||||
|
|
3
roles/network/templates/gateway/iiab-internet-off
Normal file
3
roles/network/templates/gateway/iiab-internet-off
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
sed -i -e "s/^IIAB_GATEWAY_ENABLED.*/IIAB_GATEWAY_ENABLED=False/" {{ iiab_env_file }}
|
||||
/usr/bin/iiab-gen-iptables
|
3
roles/network/templates/gateway/iiab-internet-on
Normal file
3
roles/network/templates/gateway/iiab-internet-on
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
sed -i -e "s/^IIAB_GATEWAY_ENABLED.*/IIAB_GATEWAY_ENABLED=True/" {{ iiab_env_file }}
|
||||
/usr/bin/iiab-gen-iptables
|
Loading…
Add table
Reference in a new issue