Commit a669d025 authored by Lars Beckers's avatar Lars Beckers
Browse files

radius-client: add functional "dependency-management"

parent a0d10b9c
......@@ -42,6 +42,38 @@
tags:
- 8021x
- name: ensure a script allows waiting for a connection
template:
src: wpa_wait.sh.j2
dest: /usr/local/bin/wpa_wait.sh
owner: root
group: root
mode: 0755
tags:
- 8021x
- name: ensure we can override networkd service settings
file:
state: directory
path: /etc/systemd/system/systemd-networkd.service.d
owner: root
group: root
mode: 0644
tags:
- 8021x
- name: ensure systemd-networkd waits for wpa_supplicant to authenticate
template:
src: networkd-override.conf.j2
dest: /etc/systemd/system/systemd-networkd.service.d/override.conf
owner: root
group: root
mode: 0644
notify:
- reload systemd service files
tags:
- 8021x
- meta: flush_handlers
- name: ensure wpasupplicant is enabled and running
......
[Service]
ExecStartPre=/usr/local/bin/wpa_wait.sh
#!/bin/bash
journalctl -u wpa_supplicant-wired@{{ ansible_default_ipv4.interface }} -b | tail -n1 | grep CONNECTED
while [ $? == 1 ]; do
journalctl -u wpa_supplicant-wired@{{ ansible_default_ipv4.interface }} -b | tail -n1 | grep CONNECTED
done
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment