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