automatrop: Run ansible-lint --fix
This commit is contained in:
parent
d60f5aaa9d
commit
9c3dcba2e5
18 changed files with 342 additions and 333 deletions
|
@ -1,22 +1,23 @@
|
|||
---
|
||||
- name: Set variables
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
manjaro: "{{ ansible_lsb.id == 'Manjaro' or ansible_lsb.id == 'Manjaro-ARM' }}"
|
||||
|
||||
- name: Enable passwordless sudo access to wheel group (Others)
|
||||
lineinfile:
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/sudoers
|
||||
line: "%wheel ALL=(ALL) NOPASSWD: ALL"
|
||||
regexp: "^#? *%wheel ALL=\\(ALL\\) NOPASSWD: ALL$"
|
||||
become: yes
|
||||
become: true
|
||||
when: not manjaro
|
||||
|
||||
- name: Enable passwordless sudo access to wheel group (Manjaro)
|
||||
copy:
|
||||
content: "%wheel ALL=(ALL) NOPASSWD: ALL"
|
||||
ansible.builtin.copy:
|
||||
content: "%wheel ALL=(ALL) NOPASSWD: ALL"
|
||||
dest: /etc/sudoers.d/11-wheel-nopasswd
|
||||
mode: "u=rwx,g=rx,o="
|
||||
mode: u=rwx,g=rx,o=
|
||||
when: manjaro
|
||||
become: yes
|
||||
become: true
|
||||
# /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…
Add table
Add a link
Reference in a new issue