src.nth.io/

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2024-01-18 16:04:11 -0600
committerLuke Hoersten <[email protected]>2024-01-18 16:04:11 -0600
commit5fcee5ab24ac6c70849ab6834ef52f18fc6d7081 (patch)
treeaf4471e8f0341f6d2a79c6f7fbfee302d3fafffa
parent312bf5e6094a496eafbfaed53d972c7d21d0b6d2 (diff)
Minor cleanup.
-rw-r--r--rpi-base/tasks/main.yaml9
1 files changed, 4 insertions, 5 deletions
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