create-user/authkeys: become

This commit is contained in:
Josh Lay 2025-07-27 13:23:38 -05:00
parent 4e087155d8
commit 9085c81d0d
Signed by: jlay
SSH key fingerprint: SHA256:RwEMoWwXniQX1sqHfSD+3z+LKU/TOkv3i1qsy75vfec

View file

@ -32,6 +32,7 @@
- name: "Copy '~/.ssh/id_*.pub' (on controller) to authorized_keys for '{{ create_username }}'"
tags: ['keys']
become: true
ansible.posix.authorized_key:
user: "{{ create_username }}"
state: present