Manjaro, aargh
This commit is contained in:
parent
45160c4f37
commit
729de4013e
|
@ -1,12 +1,22 @@
|
||||||
- name: Enable passwordless sudo access to wheel group
|
- name: Set variables
|
||||||
|
set_fact:
|
||||||
|
manjaro: "{{ ansible_lsb.id == 'Manjaro' or ansible_lsb.id == 'Manjaro-ARM' }}"
|
||||||
|
|
||||||
|
- name: Enable passwordless sudo access to wheel group (Others)
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/sudoers
|
path: /etc/sudoers
|
||||||
line: "%wheel ALL=(ALL) NOPASSWD: ALL"
|
line: "%wheel ALL=(ALL) NOPASSWD: ALL"
|
||||||
regexp: "^#? *%wheel ALL=\\(ALL\\) NOPASSWD: ALL$"
|
regexp: "^#? *%wheel ALL=\\(ALL\\) NOPASSWD: ALL$"
|
||||||
become: yes
|
become: yes
|
||||||
|
when: not manjaro
|
||||||
|
|
||||||
- name: Remove Manjaro installer sudoers override
|
- name: Enable passwordless sudo access to wheel group (Manjaro)
|
||||||
file:
|
copy:
|
||||||
path: /etc/sudoers.d/10-installer
|
content: "%wheel ALL=(ALL) NOPASSWD: ALL"
|
||||||
state: absent
|
path: /etc/sudoers.d/11-wheel-nopasswd
|
||||||
|
mode: "u=rwx,g=rx,o="
|
||||||
|
when: manjaro
|
||||||
become: yes
|
become: yes
|
||||||
|
# /etc/sudoers.d/10-installer is the same thing,
|
||||||
|
# but **with** a password, and it's overwritten
|
||||||
|
# with each upgrade of manjaro-system, hence this.
|
||||||
|
|
Loading…
Reference in a new issue