Quantcast
Channel: How to run Ansible with sudo no password commands with become syntax - DevOps Stack Exchange
Viewing all articles
Browse latest Browse all 3

How to run Ansible with sudo no password commands with become syntax

0
0

When I run ansible against a host machine that has some commands I need to run as root, I can't run these with "become" because it runs the commands as root instead of just running them with sudo.

What I've been doing is just using command: sudo ... and then suppressing warnings with

args:   warn: no

is there a better, more standardized, way to run a linux commandline with sudo sans password?


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images