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

netplan - need to start netplan-wpa@ after hostapd

This commit is contained in:
Jerry Vonau 2020-04-04 05:52:35 -05:00
parent a6fe7483bf
commit aa554f7045
3 changed files with 8 additions and 7 deletions

View file

@ -15,9 +15,11 @@
device_gw: "{{ discovered_wan_iface }}"
when: ansible_default_ipv4.gateway is defined
#- name: Red Hat network detection (redhat)
# include_tasks: detected_redhat.yml
# when: is_redhat | bool
- 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: Setting dhcpcd_test results
set_fact:

View file

@ -1,7 +1,3 @@
- name: Figure out netplan file name
shell: ls /etc/netplan
register: netplan
- name: Disable cloud-init the easy way
shell: touch /etc/cloud/cloud-init.disabled
when: ("item" == "50-cloud-init.yaml")

View file

@ -7,6 +7,9 @@ Before=dhcpcd.service
{% endif %}
Before=wpa_supplicant.service
Before=wpa_supplicant@{{ discovered_wireless_iface }}.service
{% if netplan.stdout.find("yaml") != -1 %}
Before=netplan-wpa@{{ discovered_wireless_iface }}
{% endif %}
Before=network.target
[Service]