Linux Operating System (MOSC)

MOSC Banner

cloud-init runcmd modules not working.

edited May 18, 2024 11:28PM in Linux Operating System (MOSC) 1 commentAnswered

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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center