diff --git a/tasks/main.yml b/tasks/main.yml index c6351f1..53e6441 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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 diff --git a/tasks/sudo.yml b/tasks/sudo.yml index 08c99e1..fd26b0e 100644 --- a/tasks/sudo.yml +++ b/tasks/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 diff --git a/tasks/users.yml b/tasks/users.yml index e5d57ca..ad264b5 100644 --- a/tasks/users.yml +++ b/tasks/users.yml @@ -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