From 5fcee5ab24ac6c70849ab6834ef52f18fc6d7081 Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Thu, 18 Jan 2024 16:04:11 -0600 Subject: Minor cleanup. --- rpi-base/tasks/main.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'rpi-base') diff --git a/rpi-base/tasks/main.yaml b/rpi-base/tasks/main.yaml index 39ecb80..6664da5 100644 --- a/rpi-base/tasks/main.yaml +++ b/rpi-base/tasks/main.yaml @@ -61,13 +61,12 @@ shell: "/bin/bash" append: yes -- name: authorize admin ssh keys - become: yes - authorized_key: user="{{admin_user_name}}" key="https://github.com/{{github_user}}.keys" - - name: authorize ssh keys become: yes - authorized_key: user="{{ansible_user}}" key="https://github.com/{{github_user}}.keys" + authorized_key: user="{{item}}" key="https://github.com/{{github_user}}.keys" + loop: + - "{{admin_user_name}}" + - "{{ansible_user}}" - name: nopasswd sudo for admin user become: yes -- cgit v1.2.3