Just wanted to share, i'am new to the whole Ansible but i did feel i still
had to do work on initial servers (unlike amazon and the likes which can be
automated more) so i made a simple function to do a addserver. I started
out simple as a one lines but then i made some simple checks in it so
others could use it too.

Basicly just a "addserver <ip>" and it will at least place the keys and add
a sudoers entry on the remote host (regardless if it has a entry in the
known_hosts) assuming you use root to login remotely. After that, yes you
run the playbook to harden the box and remove remote login with root etc


Feel free to give remarks, as i didn't find a "this does it" on google.. :)


You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7b505188-8374-488f-9eeb-aa7938113258%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupansible-project @
postedMar 1, '15 at 2:09p
activeMar 1, '15 at 2:09p

1 user in discussion

Erik-jan Riemers: 1 post



site design / logo © 2022 Grokbase