On Sep 18, 2014, at 1:09 PM, Skyler Slade <[email protected]> wrote: > Presently I do all system administration for my organization. Another > colleague will soon be handling some administration duties. I have configured > Ansible to add his user using the user module. In testing this, I also > configured Ansible to configure my user "skyler" but this task always fails > with the error "usermod: user skyler is currently logged in." This leads me > to believe that Ansible cannot manage the user that is currently running the > Ansible play (in this case, set via ansible_ssh_user). > > Which user should Ansible use? And if this user is different than my user or > my colleague's user, we will need to share those credentials, correct? > > I was hoping we could run Ansible using our own individual accounts, and that > Ansible would also manage these accounts, but this doesn't seem possible. > > Do I understand correct or have I missed something?
You probably don't want to manage the user Ansible is running as via Ansible, no. You probably want Ansible to either ssh in as root, or as a default user account with sudo access (on standard Ubuntu images on EC2, for example, this user is 'ubuntu') that's already created before ansible runs. pacem in terris / мир / शान्ति / سَلاَم / 平和 Kevin R. Bullock -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/D7727EC5-C377-4750-91E6-8E53F5BE4BCA%40softwareforgood.com. For more options, visit https://groups.google.com/d/optout.
