global_cache_dir: "{{ inventory_dir }}/.cache/"
global_artifacts_dir: "{{ inventory_dir }}/files/"
+# Default credentials
+## Root password; by default, undefined
+root_password: "{{ vault_root_password }}"
+## SSH keys for root, default to NOC's
+ssh_keys: "{{ noc_ssh_keys }}"
---
-root_password: "{{ vault_root_password }}"
-
network:
nameservers:
- 10.12.0.10
---
-root_password: "{{ vault_root_password }}"
-
network:
nameservers:
- 10.12.0.10
- name: Set authorized keys for root user
authorized_key:
user: root
- key: "{{ noc_ssh_keys | join('\n') }}"
+ key: "{{ ssh_keys | join('\n') }}"
exclusive: yes
- name: disable apt suggests and recommends
-ssh_keys: "{{ noc_ssh_keys }}"
---
dependencies:
- role: preseed
- # TODO: Find a way to eliminate the duplicate defaults.
- ssh_keys: "{{ hostvars[hostname].ssh_keys | default(noc_ssh_keys) }}"
+ ssh_keys: "{{ hostvars[hostname].ssh_keys }}"
install_interface: enp1s1