Have cloud-init generate machine-id

Change-Id: I616d1f0c6fd03108730f2773974caa54b9c91306
This commit is contained in:
Anderson, Craig (ca846m) 2021-04-12 15:38:52 -07:00
parent 0e63d43d0b
commit 88a2792eb5
2 changed files with 13 additions and 0 deletions

View File

@ -10,3 +10,14 @@
systemd:
masked: yes
name: ssh.socket
- name: "Cloud-Init | Ensuring cloud-init overrides directory exists"
file:
path: "/etc/systemd/system/cloud-init-local.service.d"
state: directory
mode: '0755'
- name: "Cloud-Init | Place cloud-init override file"
template:
src: cloud-init-local-overrides.j2
dest: "/etc/systemd/system/cloud-init-local.service.d/override.conf"
mode: '0644'

View File

@ -0,0 +1,2 @@
[Service]
ExecStart=/bin/systemd-machine-id-setup