become_flags is a 2.2 feature

A user got bitten when become_flags didn't work as we hadn't stated it's a 2.2 feature
pull/17365/head
John R Barker 8 years ago committed by GitHub
parent 9963ae1d3e
commit b0335b5ebd

@ -32,7 +32,7 @@ become_method
(at play or task level) overrides the default method set in ansible.cfg, set to `sudo`/`su`/`pbrun`/`pfexec`/`doas`/`dzdo`/`ksu`
become_flags
(at play or task level) permit to use specific flags for the tasks or role. One common use is to change user to nobody when the shell is set to no login
(at play or task level) permit to use specific flags for the tasks or role. One common use is to change user to nobody when the shell is set to no login. Added in Ansible 2.2
For example, to manage a system service (which requires ``root`` privileges) when connected as a non-``root`` user (this takes advantage of the fact that the default value of ``become_user`` is ``root``)::

Loading…
Cancel
Save