ansible-test/roles/virt_vm/templates/ci-userdata.j2

17 lines
315 B
Plaintext
Raw Normal View History

2021-06-06 21:46:18 +02:00
#cloud-config
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
runcmd:
- eject /dev/sr0
- systemctl disable cloud-init