mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Better error for fireball + sudo mode.
This commit is contained in:
parent
6304b7e793
commit
9be93d6ac7
1 changed files with 5 additions and 1 deletions
|
@ -73,7 +73,11 @@ class Connection(object):
|
||||||
vvv("EXEC COMMAND %s" % cmd)
|
vvv("EXEC COMMAND %s" % cmd)
|
||||||
|
|
||||||
if self.runner.sudo and sudoable:
|
if self.runner.sudo and sudoable:
|
||||||
raise errors.AnsibleError("fireball does not use sudo, but runs as whoever it was initiated as. (That itself is where to use sudo).")
|
raise errors.AnsibleError(
|
||||||
|
"When using fireball you should not use sudo to run your tasks. " +
|
||||||
|
"Instead please run fireball action with sudo and use 'sudo: no' " +
|
||||||
|
"for the tasks that go via fireball."
|
||||||
|
)
|
||||||
|
|
||||||
data = dict(
|
data = dict(
|
||||||
mode='command',
|
mode='command',
|
||||||
|
|
Loading…
Reference in a new issue