- more updates to os-specific setups

This commit is contained in:
Pi
2019-07-29 11:54:52 -04:00
parent f16d598797
commit b85b326204
3 changed files with 95 additions and 132 deletions

View File

@@ -53,7 +53,8 @@
state: restarted
tags: enable_openvpn
when: openvpn_enabled
- lineinfile:
- name: allow pi to sudo without pw
lineinfile:
path: /etc/sudoers
state: present
regexp: '^%sudo'
@@ -61,16 +62,16 @@
validate: 'visudo -cf %s'
become: true
tags: pi_sudo
- name: Ensure the locale exists
locale_gen:
name: en_US.UTF-8
state: present
become: yes
- name: set as default locale
command: raspi-config nonint do_change_locale en_US.UTF-8
become: yes
- name: set keyboard to us
command: raspi-config nonint do_configure_keyboard us
#- name: Ensure the locale exists
# locale_gen:
# name: en_US.UTF-8
# state: present
# become: yes
#- name: set as default locale
# command: raspi-config nonint do_change_locale en_US.UTF-8
# become: yes
#- name: set keyboard to us
# command: raspi-config nonint do_configure_keyboard us
- name: pi
become: yes
user: