Zeal, Why don't you use role for post installation and create a shell script that runs the role for each machine:
https://www.digitalocean.com/community/tutorials/how-to-use-ansible-roles-to-abstract-your-infrastructure-environment On Mon, Feb 22, 2016 at 10:22 AM, Zeal Vora <[email protected]> wrote: > Thanks Robert. > > 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. > > So ideally, after deployment via PXE, running Ansible on the newely > deployed machine is the ideal solution ? > > > Cheers! > Zeal > > On Mon, Feb 22, 2016 at 1:52 PM, Robert Paschedag <[email protected] > > wrote: > >> Hi, >> >> Why don't you just create some "postinstall" script to your image >> deployment to do that? >> >> In Suse, you can do this within autoyast. >> >> Regards >> Robert >> Am 22.02.2016 02:21 schrieb Zeal Vora <[email protected]>: >> > >> > Hi >> > >> > We generally use Ansible for many things including Server Hardening and >> Linux Hardening rules. >> > >> > I was wondering, if is use SpaceWalk for Deployments via PXE, doing a >> Laptop Hardening ( Linux hardening ) does not seem to be possible. >> > >> > We then need to run Ansible to deploy the Linux Hardening rules on >> those new machines. >> > >> > 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 ! >> > >> > If there is any better solution, any suggestions would be appreciated ! >> > >> > >> > Regards, >> > Zeal >> > > > _______________________________________________ > Spacewalk-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/spacewalk-list >
_______________________________________________ Spacewalk-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-list
