mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 02:15:17 +00:00
Add support for wireless connections
WPA-PSK and WPA-EAP are supported. Uses existing 802.1x features of the role. Added extra functionality to ArgValidatorStr to enforce a min and max length.
This commit is contained in:
parent
47ad99c7f0
commit
51f8e5b05f
12 changed files with 807 additions and 23 deletions
|
|
@ -23,6 +23,22 @@
|
|||
state: present
|
||||
when:
|
||||
- not network_packages is subset(ansible_facts.packages.keys())
|
||||
register: __network_package_install
|
||||
|
||||
# If network packages have changed and wireless connections are required,
|
||||
# NetworkManager must be restarted
|
||||
- name: Restart NetworkManager
|
||||
service:
|
||||
name: NetworkManager
|
||||
state: restarted
|
||||
when:
|
||||
- __network_wireless_connections_defined
|
||||
- network_provider == "nm"
|
||||
- network_allow_restart
|
||||
# ansible-lint wants this to be a handler, but this is not appropriate as
|
||||
# NetworkManager must be restarted prior to the connections being created.
|
||||
# see (https://docs.ansible.com/ansible-lint/rules/default_rules.html)
|
||||
- __network_package_install.changed # noqa 503
|
||||
|
||||
- name: Enable and start NetworkManager
|
||||
service:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue