39 lines
754 B
YAML
39 lines
754 B
YAML
- group:
|
|
name: admin
|
|
state: present
|
|
|
|
- name: Passwordless sudo for admins
|
|
lineinfile: dest=/etc/sudoers line="%admin ALL=(ALL:ALL) NOPASSWD:ALL"
|
|
|
|
- import_tasks: users.yml
|
|
|
|
- name: common | install packages
|
|
apt: pkg={{ item }} state=latest update_cache=yes
|
|
with_items:
|
|
- curl
|
|
- htop
|
|
- molly-guard
|
|
- sudo
|
|
- tree
|
|
- vim
|
|
- python-simplejson
|
|
|
|
- name: sshd_config
|
|
file:
|
|
src: files/sshd_config
|
|
dest: /etc/ssh/sshd_config
|
|
mode: 0644
|
|
owner: root
|
|
group: root
|
|
|
|
- name: disable apparmor
|
|
apt: pkg=apparmor state=absent
|
|
|
|
- import_tasks: docker.yml
|
|
|
|
- name: Log into DockerHub
|
|
docker_login:
|
|
registry: registry.webhosting.rug.nl
|
|
username: "{{ docker_user }}"
|
|
password: "{{ docker_pass }}"
|