# Configurable sudo default

**URL:** <https://forum.ansible.com/t/configurable-sudo-default/12101>\
**Category:** Ansible Project\
**Created:** [November 23, 2012, 9:03am UTC](https://forum.ansible.com/t/configurable-sudo-default/12101 "2012-11-23T09:03:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmad\_Khayyat](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@Ahmad\_Khayyat](https://forum.ansible.com/u/Ahmad_Khayyat)\
**Post date:** [November 23, 2012, 9:03am UTC](https://forum.ansible.com/t/configurable-sudo-default/12101/1 "2012-11-23T09:03:08Z")

</div>

Right now, I can have sudo disabled by default and enable it when needed using the -s command line option.  
However, I’d like to have the opposite setup: have sudo enabled by default and disable it when not needed.

I propose the following, which would achieve this goal without having to update all one’s plays:

- sudo entry in the configuration file. The example configuration file does not mention a sudo option that corresponds to ‘sudo: True’ or ‘sudo: False’ in playbooks. If it is supported, great. If not, I vote for having it.

- A command line option for disabling sudo (the opposite of the current -s option). Perhaps -S ?
