Skip to content

Running plays as root -- ssh access best practices question #430

@drio

Description

@drio

Thank you for writing this great book Jeff.

I'd like to know what are the best practices out there to setup an ansible friendly machine.

Ideally what we want is to have ssh access via a non-root user and then "become" root via sudo when necessary.
Is that what you do? Is that an accepted secure way to configure a linux box?

I am asking because that is not what I am seeing in some of the machines I want to run ansible on. Most of the time, sudo requires you entering your user password. In that context ansible is unusable.

When I ask syadmins/dops to change the setup to the "ideal setup" (sudo without password) they don't do it on the basis of security. Is that a valid security concern? And, if it is, what do you then to run ansible?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions