This should be added as a dependancy to any other roles that require
sudo. This commits adds it to ansible-managed, common and testnode.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
--- /dev/null
+---
+dependencies:
+ - role: sudo
---
dependencies:
+ - role: sudo
- role: secrets
- role: users
+
--- /dev/null
+Sudo
+====
+
+This role is mainly used as a dependancy for others. If you add this role as a dependancy
+to another it will ensure that all tasks in that role will use sudo.
--- /dev/null
+---
+# ensures that sudo will be used for all tasks
+ansible_sudo: true
---
dependencies:
- role: secrets
+ - role: sudo