auxiliary infrastructure [PXE, netbox, ubnt controller]. probably on a pi or something
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
# - name: USER | change password
|
|
# user:
|
|
# name: pi
|
|
# password: "{{ lookup('passwordstore', 'infra/machine/pi@' + ansible_hostname + ' create=true length=20')
|
|
# | password_hash('sha512', 65534 | random(seed=inventory_hostname) | string) }}"
|
|
|
|
- name: USER | add authorized SSH key(s)
|
|
authorized_key:
|
|
user: pi
|
|
state: present
|
|
key: "{{ lookup('file', item) }}"
|
|
with_fileglob:
|
|
- "keys/*.pub"
|