I’ve played with Ansible before but hadn’t really done much in terms of maintaining a whole infrastructure. I’m hoping to restart my foray into it in hopes to migrate off of the old way of standing up systems. I wish to migrate to using Ansible to manage the whole infrastructure. That said, I’m starting off simple. I’m not touching the existing systems. I have a basic control node and just set up a minimal CentOS 7 system.
Here is where i"m a tad bit confused in what I need to do and if someone can clarify things, I’d be appreciated.
Is the following process correct?
Log on to Alpha and create a new user, say automation.
create ssh keys for automation.
allow automation to have sudo access w/ no password.
copy ssh credentials to control node.
Is this the very first thing one does for every new system? (Granted, I won’t need to create new ssh-keys as I just need to copy the original ones to the new system).
My understanding of this process is that in order to manage any system, I need a user that can have access to said system. Once I have that user set up properly,
I won’t need to even log in manually to do things.
That is pretty close to what I am doing. The only thing I want to do differently, is that I want to lock the automation account, so that it’s only accepted from a specific host. ( ie. the ansible control node)
Here is where i"m a tad bit confused in what I need to do and if someone can clarify things, I’d be appreciated.
Is the following process correct?
Yes Ed, the steps you’ve listed are fine.
Log on to Alpha and create a new user, say automation.
create ssh keys for automation.
allow automation to have sudo access w/ no password.
copy ssh credentials to control node.
Is this the very first thing one does for every new system? (Granted, I won’t need to create new ssh-keys as I just need to copy the original ones to the new system).
My understanding of this process is that in order to manage any system, I need a user that can have access to said system. Once I have that user set up properly,
I won’t need to even log in manually to do things.