aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-02-27 13:28:45 +0800
committerAaron LI <aly@aaronly.me>2018-03-14 11:28:44 +0800
commit2d8ca670d9148c7de2a95c8448985f74238d7cdb (patch)
treed4c63ccb585ac3796143a755fa438f8cdc4d37b7 /roles
parentc10e1524e5b67fce4d8b17b0fa5ca39aac72c465 (diff)
downloadansible-dfly-vps-2d8ca670d9148c7de2a95c8448985f74238d7cdb.tar.bz2
bootstrap: install sudo
Diffstat (limited to 'roles')
-rw-r--r--roles/bootstrap/tasks/main.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/bootstrap/tasks/main.yml b/roles/bootstrap/tasks/main.yml
index 3ab7e35..b737188 100644
--- a/roles/bootstrap/tasks/main.yml
+++ b/roles/bootstrap/tasks/main.yml
@@ -33,6 +33,11 @@
with_items:
- "{{ ansible_ssh_private_key_file }}"
+- name: sudo - install package
+ pkgng:
+ name: sudo
+ state: present
+
- name: sudo - no password for the deployment user
template:
src: sudoers.d_ansible.j2