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