Change back to cloud init
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
---
|
||||
---
|
||||
- name: Generate Cloud-init config
|
||||
template:
|
||||
src: "{{ 'user-data-coreos.yaml.j2' if os_type in ['coreos', 'flatcar'] else 'user-data.yaml.j2' }}"
|
||||
src: user-data.yaml.j2
|
||||
dest: "/tmp/{{ vm_name }}_user-data"
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#cloud-config
|
||||
users:
|
||||
- name: {{ vm_user }}
|
||||
passwd: {{ vm_password | password_hash('sha512') }}
|
||||
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||
ssh_authorized_keys:
|
||||
- {{ lookup('file', vm_ssh_public_key | replace('~', lookup('env', 'HOME'))) }}
|
||||
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||
lock_passwd: false
|
||||
|
||||
Reference in New Issue
Block a user