summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2013-11-26 23:50:36 +0100
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:50:56 +0200
commita03f59d589e65366fb0194534cb6aa2a36176bc4 (patch)
tree1e82a6e049c4b07023b3cf3307d88b99889b7254
parentddbd54a44814fb81cd27e21edbdc0e9a90f03d91 (diff)
Tell ansible we generally want to use sudo(8).
I.e., put 'sudo=True' in ansible.cfg.
-rw-r--r--ansible.cfg1
-rw-r--r--common.yml1
2 files changed, 1 insertions, 1 deletions
diff --git a/ansible.cfg b/ansible.cfg
index 524103e..6afc1ef 100644
--- a/ansible.cfg
+++ b/ansible.cfg
@@ -44,6 +44,7 @@ poll_interval=15
# and not specifying "--sudo-user" or "sudo_user" respectively, sudo
# to this user account
+sudo=True
#sudo_user=root
# the following forces ansible to always ask for the sudo password (instead of having
diff --git a/common.yml b/common.yml
index 9720dba..2c555f9 100644
--- a/common.yml
+++ b/common.yml
@@ -1,7 +1,6 @@
---
- name: Common tasks
hosts: all
- sudo: True
vars_files:
- vars.yml
roles: