Hi,
I am trying to configure oracle linux with scripts on initial boot using cloud-init. for this purpose I am using Ansible tool with ovirt.ovirt collection to automate VM creation.
The VM created fine, but the runcmd does not works as expected
for testing purpose, I am trying to create a directory in the path /root/test, the log shows its success, but the directory test is missing from the path /root.
custom script used for cloud-init config
cloud_init:
custom_script: |
runcmd:
- mkdir /root/test
cloud-init log.
from the above it seems the config-runcmd is success, but the the desired directory is missing.
how to fix this issue?
Thanks,
Mohan