2021-06-06 21:46:18 +02:00
|
|
|
#cloud-config
|
|
|
|
|
2021-06-07 23:11:12 +02:00
|
|
|
preserve_hostname: False
|
|
|
|
hostname: {{ inventory_hostname }}
|
|
|
|
|
2021-06-06 21:46:18 +02:00
|
|
|
users:
|
|
|
|
- name: ansible
|
|
|
|
ssh_authorized_keys:
|
|
|
|
- {{ lookup("file", "private/keyfile.pub") }}
|
|
|
|
sudo: ['ALL=(ALL) NOPASSWD:ALL']
|
|
|
|
groups: sudo
|
|
|
|
shell: /bin/bash
|
2021-06-07 23:11:12 +02:00
|
|
|
|
|
|
|
runcmd:
|
|
|
|
- eject /dev/sr0
|
|
|
|
- systemctl disable cloud-init
|