Fix ansible lint errors
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
include: users.yml
|
include: users.yml
|
||||||
loop: "{{ basic_users }}"
|
loop: "{{ basic_users }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: os_user
|
loop_var: os_user
|
||||||
|
|
||||||
- name: Setup sudo access
|
- name: Setup sudo access
|
||||||
include: sudo.yml
|
include: sudo.yml
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/sudoers
|
dest: /etc/sudoers
|
||||||
regexp: "^%sudo"
|
regexp: "^%sudo"
|
||||||
line: "%sudo ALL=(ALL) NOPASSWD:ALL"
|
line: "%sudo ALL=(ALL) NOPASSWD:ALL"
|
||||||
tags: sudo
|
tags: sudo
|
||||||
become: true
|
become: true
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
uid: "{{ os_user.uid }}"
|
uid: "{{ os_user.uid }}"
|
||||||
shell: "{{ os_user.shell }}"
|
shell: "{{ os_user.shell }}"
|
||||||
groups: "{{ os_user.groups }}"
|
groups: "{{ os_user.groups }}"
|
||||||
state: "{{ os_user.state | default('present')}}"
|
state: "{{ os_user.state | default('present') }}"
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Copy local ssh key to authorized keys file
|
- name: Copy local ssh key to authorized keys file
|
||||||
|
|||||||
Reference in New Issue
Block a user