From 2fb98152ad65682f7e0d354cf639f31fd92113f3 Mon Sep 17 00:00:00 2001 From: Praveen Kumar Date: Tue, 8 Sep 2015 15:42:56 +0530 Subject: [PATCH] Update doc to use 'become' instead of 'sudo' --- docsite/rst/intro_getting_started.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docsite/rst/intro_getting_started.rst b/docsite/rst/intro_getting_started.rst index c1cd5571e6..d6a22a8bb4 100644 --- a/docsite/rst/intro_getting_started.rst +++ b/docsite/rst/intro_getting_started.rst @@ -85,6 +85,12 @@ If you would like to access sudo mode, there are also flags to do that: # as bruce, sudoing to batman $ ansible all -m ping -u bruce --sudo --sudo-user batman + # With latest version of ansible `sudo` is deprecated so use become + # as bruce, sudoing to root + $ ansible all -m ping -u bruce -b + # as bruce, sudoing to batman + $ ansible all -m ping -u bruce -b --become-user batman + (The sudo implementation is changeable in Ansible's configuration file if you happen to want to use a sudo replacement. Flags passed to sudo (like -H) can also be set there.)