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.
|
- hosts: localhost
|
|
connection: local
|
|
tasks:
|
|
- add_host:
|
|
name: "{{ unprepped }}"
|
|
groups: unprepped
|
|
ansible_user: pi
|
|
ansible_password: raspberry
|
|
changed_when: false
|
|
|
|
|
|
- hosts: unprepped
|
|
vars_prompt:
|
|
- name: provision_hostname
|
|
prompt: hostname to provision with?
|
|
private: no
|
|
tasks:
|
|
- include_role:
|
|
name: rpi-base
|
|
vars:
|
|
new_hostname: "{{provision_hostname}}"
|
|
ssh_keys:
|
|
- "{{ lookup('file', 'keys/id_rsa.pub') }}"
|