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

network/tasks/restart.yml also needed netplan var. Dup code for now :/

This commit is contained in:
root 2022-07-22 11:25:47 -04:00
parent 79d6bd8bc6
commit f33e15ecd2
4 changed files with 12 additions and 2 deletions

View file

@ -36,7 +36,7 @@
device_gw: "{{ discovered_wan_iface }}"
when: ansible_default_ipv4.gateway is defined
# 2022-07-22: Moved to netplan.yml
# 2022-07-22: Moved to netplan.yml AND restart.yml (REMOVE DUPLICATE CODE LATER?!)
# - name: Figure out netplan file name
# shell: ls /etc/netplan
# register: netplan

View file

@ -43,6 +43,7 @@
# group: root
# mode: 0755
- name: Configuring Network if enabled
block:
@ -101,6 +102,7 @@
# end block
when: network_installed is defined and network_enabled
- name: Create {{ iiab_etc_path }}/install-flags/iiab-network-complete on second pass of network role.
file:
path: "{{ iiab_etc_path }}/install-flags/iiab-network-complete"

View file

@ -1,4 +1,4 @@
# 2022-07-22: Moved from detected_network.yml
# 2022-07-22: Moved from detected_network.yml to netplan.yml AND restart.yml (REMOVE DUPLICATE CODE LATER?!)
- name: Figure out netplan file name
shell: ls /etc/netplan
register: netplan

View file

@ -1,3 +1,11 @@
# 2022-07-22: Moved from detected_network.yml to netplan.yml AND restart.yml (REMOVE DUPLICATE CODE LATER?!)
- name: Figure out netplan file name
shell: ls /etc/netplan
register: netplan
#ignore_errors: True # pre 17.10 doesn't use netplan
when: is_ubuntu
- name: Restart wpa_supplicant service
systemd:
name: "{{ item }}"