<div dir="ltr">Zeal,<div><br></div><div>Why don't you use role for post installation and create a shell script that runs the role for each machine:</div><div><br></div><div><a href="https://www.digitalocean.com/community/tutorials/how-to-use-ansible-roles-to-abstract-your-infrastructure-environment">https://www.digitalocean.com/community/tutorials/how-to-use-ansible-roles-to-abstract-your-infrastructure-environment</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 22, 2016 at 10:22 AM, Zeal Vora <span dir="ltr"><<a href="mailto:zeal@freecharge.com" target="_blank">zeal@freecharge.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Robert.<div><br></div><div>Post Installation script becomes difficult to write as in Ansbile there are so many ready made modules that are available so writing code becomes easier in it.</div><div><br></div><div>So ideally, after deployment via PXE, running Ansible on the newely deployed machine is the ideal solution ?</div><div><br></div><div><br></div><div>Cheers!</div><span class="HOEnZb"><font color="#888888"><div>Zeal</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 22, 2016 at 1:52 PM, Robert Paschedag <span dir="ltr"><<a href="mailto:robert.paschedag@web.de" target="_blank">robert.paschedag@web.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Why don't you just create some "postinstall" script to your image deployment to do that?<br>
<br>
In Suse, you can do this within autoyast.<br>
<br>
Regards<br>
<span><font color="#888888">Robert<br>
</font></span><div><div>Am 22.02.2016 02:21 schrieb Zeal Vora <<a href="mailto:zeal@freecharge.com" target="_blank">zeal@freecharge.com</a>>:<br>
><br>
> Hi<br>
><br>
> We generally use Ansible for many things including Server Hardening and Linux Hardening rules.<br>
><br>
> I was wondering, if is use SpaceWalk for Deployments via PXE, doing a Laptop Hardening ( Linux hardening ) does not seem to be possible.<br>
><br>
> We then need to run Ansible to deploy the Linux Hardening rules on those new machines.<br>
><br>
> Is there any optimal way where whenever a new machine is provisioned , after PXE, Space Walk can automatically run the Linux Hardening Rules via Ansible !<br>
><br>
> If there is any better solution, any suggestions would be appreciated ! <br>
><br>
><br>
> Regards,<br>
> Zeal</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br></blockquote></div><br></div>