26 lines
575 B
YAML
26 lines
575 B
YAML
- name: Set wifi country
|
|
become: true
|
|
shell: "raspi-config nonint get_wifi_country && raspi-config nonint do_wifi_country SI; true"
|
|
register: wifi_country
|
|
changed_when:
|
|
- wifi_country != "SI"
|
|
|
|
- name: Configure P2P wifi
|
|
become: yes
|
|
community.general.nmcli:
|
|
conn_name: "MALINCA"
|
|
ifname: wlan0
|
|
type: wifi
|
|
ssid: "MALINCA"
|
|
wifi_sec:
|
|
key-mgmt: wpa-psk
|
|
psk: "MALINCA123"
|
|
autoconnect: true
|
|
method4: auto
|
|
state: present
|
|
|
|
- name: Restart NetworkManager
|
|
become: yes
|
|
service:
|
|
name: NetworkManager
|
|
state: restarted
|