shell:echo "If this works, this web page won't work again until you connect to the new WiFi network!" && sudo nmcli device wifi rescan && sleep 1 && sudo nmcli device wifi connect "{{ wifi_ssid }}" password "{{ wifi_password }}"
icon:"🛜"# wireless
shell:echo "If this works, this web page won't work again until you connect to the new WiFi network!" && echo && sudo nmcli device wifi rescan && sleep 1 && sudo nmcli device wifi connect "{{ wifi_ssid }}" password "{{ wifi_password }}"
onclick:execution-dialog
timeout:10
arguments:
@ -140,15 +140,27 @@ actions:
- name:wifi_password
type:ascii_sentence
- title:"Change Hostname and Reboot"
icon:"⚙"# gear
shell:sudo hostnamectl set-hostname {{ hostname }} && sudo reboot now
- title:"Change Hostname and Restart"
icon:"🛜"# wireless
shell:echo "If this works, this web page won't work again until you connect using the new host name after the restart!" && echo && sudo hostnamectl set-hostname {{ hostname }} && sudo reboot now
onclick:execution-dialog
timeout:10
arguments:
- name:hostname
type:ascii_sentence
- title:"Show Available WiFi Networks"
icon:"🛜"# wireless
shell:sudo nmcli device wifi rescan && nmcli device wifi list