Move SSID to vault.
This commit is contained in:
parent
79ec9e57f2
commit
ee85c41483
4 changed files with 94 additions and 91 deletions
|
@ -4,9 +4,9 @@
|
|||
---
|
||||
- name: Configure WLAN for devices
|
||||
community.general.nmcli:
|
||||
conn_name: FVS-devices
|
||||
conn_name: "{{ ssid }}"
|
||||
type: wifi
|
||||
ssid: FVS-devices
|
||||
ssid: "{{ ssid }}"
|
||||
ifname: "{{ ansible_interfaces | select('search', 'wl.+') | first }}"
|
||||
wifi_sec:
|
||||
key-mgmt: wpa-psk
|
||||
|
@ -17,7 +17,7 @@
|
|||
|
||||
- name: Provide WLAN config during installation
|
||||
template:
|
||||
src: FVS-devices.nmconnection.j2
|
||||
dest: /etc/NetworkManager/system-connections/FVS-devices.nmconnection
|
||||
src: ssid.nmconnection.j2
|
||||
dest: "/etc/NetworkManager/system-connections/{{ ssid }}.nmconnection"
|
||||
mode: '0600'
|
||||
when: run_in_installer|default(false)|bool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue