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.

12 lines
436 B

6 years ago
  1. # - name: USER | change password
  2. # user:
  3. # name: pi
  4. # password: "{{ lookup('passwordstore', 'infra/machine/pi@' + ansible_hostname + ' create=true length=20')
  5. # | password_hash('sha512', 65534 | random(seed=inventory_hostname) | string) }}"
  6. - name: USER | add authorized SSH key(s)
  7. authorized_key:
  8. user: pi
  9. state: present
  10. key: "{{ lookup('file', item) }}"
  11. with_fileglob:
  12. - "keys/*.pub"