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:
parent
79d6bd8bc6
commit
f33e15ecd2
4 changed files with 12 additions and 2 deletions
|
@ -36,7 +36,7 @@
|
||||||
device_gw: "{{ discovered_wan_iface }}"
|
device_gw: "{{ discovered_wan_iface }}"
|
||||||
when: ansible_default_ipv4.gateway is defined
|
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
|
# - name: Figure out netplan file name
|
||||||
# shell: ls /etc/netplan
|
# shell: ls /etc/netplan
|
||||||
# register: netplan
|
# register: netplan
|
||||||
|
|
|
@ -43,6 +43,7 @@
|
||||||
# group: root
|
# group: root
|
||||||
# mode: 0755
|
# mode: 0755
|
||||||
|
|
||||||
|
|
||||||
- name: Configuring Network if enabled
|
- name: Configuring Network if enabled
|
||||||
block:
|
block:
|
||||||
|
|
||||||
|
@ -101,6 +102,7 @@
|
||||||
# end block
|
# end block
|
||||||
when: network_installed is defined and network_enabled
|
when: network_installed is defined and network_enabled
|
||||||
|
|
||||||
|
|
||||||
- name: Create {{ iiab_etc_path }}/install-flags/iiab-network-complete on second pass of network role.
|
- name: Create {{ iiab_etc_path }}/install-flags/iiab-network-complete on second pass of network role.
|
||||||
file:
|
file:
|
||||||
path: "{{ iiab_etc_path }}/install-flags/iiab-network-complete"
|
path: "{{ iiab_etc_path }}/install-flags/iiab-network-complete"
|
||||||
|
|
|
@ -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
|
- name: Figure out netplan file name
|
||||||
shell: ls /etc/netplan
|
shell: ls /etc/netplan
|
||||||
register: netplan
|
register: netplan
|
||||||
|
|
|
@ -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
|
- name: Restart wpa_supplicant service
|
||||||
systemd:
|
systemd:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue