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.

23 lines
507 B

6 years ago
  1. - hosts: localhost
  2. connection: local
  3. tasks:
  4. - add_host:
  5. name: "{{ unprepped }}"
  6. groups: unprepped
  7. ansible_user: pi
  8. ansible_password: raspberry
  9. changed_when: false
  10. - hosts: unprepped
  11. vars_prompt:
  12. - name: provision_hostname
  13. prompt: hostname to provision with?
  14. private: no
  15. tasks:
  16. - include_role:
  17. name: rpi-base
  18. vars:
  19. new_hostname: "{{provision_hostname}}"
  20. ssh_keys:
  21. - "{{ lookup('file', 'keys/id_rsa.pub') }}"