From c13aa7bd6a1fa98dd1e015419efbe756b2d4a5ac Mon Sep 17 00:00:00 2001 From: Emmanouil Kampitakis Date: Thu, 27 Feb 2020 07:49:40 +0100 Subject: [PATCH] Fix ansible lint errors --- tasks/main.yml | 2 +- tasks/sudo.yml | 2 +- tasks/users.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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