1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

helper scripts

This commit is contained in:
Jerry Vonau 2021-04-12 12:10:45 -05:00
parent df5618c3a4
commit 6aeaeed6ab
3 changed files with 17 additions and 0 deletions

View file

@ -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 }}"

View 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

View 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