mirror of
https://github.com/ruanbekker/rpi-ansible.git
synced 2025-04-19 17:01:38 +02:00
add ignore_errors for wifi
This commit is contained in:
parent
0bd9fb94bd
commit
4fd6cab289
@ -41,12 +41,13 @@
|
||||
- name: set wifi country
|
||||
command: "raspiconfig nonint do_wifi_country {{ myconfig.wifi_country }}"
|
||||
when: "'wifi_country' in myconfig and myconfig.wifi_country != raspi_wifi_country"
|
||||
ignore_errors: True #to avoid error when WiFi is not present
|
||||
|
||||
# Enable sshd
|
||||
- name: disable ssh login for user pi
|
||||
lineinfile:
|
||||
dest=/etc/ssh/sshd_config
|
||||
line="DenyUsers pi"
|
||||
line="DenyUsers root"
|
||||
state=present
|
||||
tags:
|
||||
- raspi
|
||||
|
Loading…
x
Reference in New Issue
Block a user