diff --git a/roles/bootstrap/tasks/main.yml b/roles/bootstrap/tasks/main.yml new file mode 100644 index 0000000000000000000000000000000000000000..6e32bbd6d0016ec5ec80fe20ea0c00b910f16799 --- /dev/null +++ b/roles/bootstrap/tasks/main.yml @@ -0,0 +1,16 @@ +--- + +- name: Install sudo + apt: name=sudo state=installed + +- name: Set-up the Ansible group + group: name=ansible system=yes + +- name: Set-up the Ansible user + user: name=ansible system=yes group=ansible shell=/bin/bash + +- name: Set-up authorized key for the Ansible user + authorized_key: user=ansible key="{{ lookup('file', ansible_key) }}" + +- name: Set-up password-less sudo for the ansible user + copy: src=ansible_sudo dest=/etc/sudoers.d/ansible mode=640 owner=root group=root \ No newline at end of file