1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

move to runtime option from install time (via 1-prep)

This commit is contained in:
Jerry Vonau 2021-04-12 10:31:23 -05:00
parent 742405b1d3
commit 1b8e6e4958

View file

@ -53,11 +53,12 @@
name: avahi-daemon
state: restarted
- name: Create gateway flag
shell: echo 1 > /etc/sysconfig/olpc-scripts/setup.d/installed/gateway
args:
creates: /etc/sysconfig/olpc-scripts/setup.d/installed/gateway
when: iiab_network_mode == "Gateway"
- name: Record 'IIAB_GATEWAY_ENABLED={{ iiab_gateway_enabled }}' in {{ iiab_env_file }}
lineinfile:
path: "{{ iiab_env_file }}"
regexp: '^IIAB_GATEWAY_ENABLED=*'
line: 'IIAB_GATEWAY_ENABLED={{ iiab_gateway_enabled }}'
state: present
#netplan de-configures pre-created bridged interfaces
#- name: Reload netplan when Wifi is not gateway on Ubuntu 18+