cloud-init runcmd modules not working.
Hi,
I am using Ansible + cloud-init runcmd module to create and initialize the oracle linux VM on its first boot.
for testing purpose, I am trying to create a directory in root home folder, this is the configuration used in the playbook.
cloud-init:
custom_script: |
runcmd:
- mkdir /root/test
the log in /var/log/cloud-init.log does not return any error for runcmd and the directory test directory does not gets created also, I cannot able to attach the log.
OS: Oracle Linux 8.8
OLVM version: 4.5.4-1.0.27.el8
How to fix this issue?
Thanks,
Mohan