diff options
| author | Luke Hoersten <[email protected]> | 2024-01-18 16:04:11 -0600 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2024-01-18 16:04:11 -0600 |
| commit | 5fcee5ab24ac6c70849ab6834ef52f18fc6d7081 (patch) | |
| tree | af4471e8f0341f6d2a79c6f7fbfee302d3fafffa | |
| parent | 312bf5e6094a496eafbfaed53d972c7d21d0b6d2 (diff) | |
Minor cleanup.
| -rw-r--r-- | rpi-base/tasks/main.yaml | 9 |
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 |
