boot script

Hi Folks,

I am new to Ansible .I need help to create a boot script something like kickstart file using Ansible

I already have a kickstart file (shown below) to install centos & KVM on a physicall host. The script will run on network (PXE) i want in yaml format But dont know how do i go ahead :frowning:

when i use http://www.yamllint.com/ to test --it does not show any result. :frowning:

Please help!

Do you want to generate the Anaconda kickstart files using Ansible for
multiple servers, or something else?

If you wish to generate Anaconda kickstart files using Ansible, you
can easily do so using the template module (see
http://docs.ansible.com/template_module.html). Just figure out what
options you need to parametrise in the kickstart file, and pass those
in to your playbook.

You should go through the Ansible tutorials first, of course.

If you're trying to do something different, some more information about
what you are trying to achieve, how you have tried to do it, and what
issues you are having would be useful in order for people to be able to
help you.

Best regards

Hello Branko

thank you for your reply.

I am not exactly looking at an Anaconda file… I am looking into a simple YAML script(playbook) which works as PXE boot script.
That means I have a boot server which has Ansible installed in it. I want to place the script in that boot server & remotely kickstart (build, configure ) a new centos host with KVM on physical server.
I want to put all the installation steps mentioned below in that playbook but confused about the roles ,variables etc…