Ansible but more better
This commit is contained in:
parent
29b2beca5a
commit
b7ce9d850d
13 changed files with 172 additions and 0 deletions
26
ansible_deploy/display/wifi_temp.yml
Normal file
26
ansible_deploy/display/wifi_temp.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
- 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
|
Loading…
Add table
Add a link
Reference in a new issue