2017-04-25 14:47:04 +02:00
|
|
|
- group:
|
|
|
|
name: admin
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Passwordless sudo for admins
|
|
|
|
lineinfile: dest=/etc/sudoers line="%admin ALL=(ALL:ALL) NOPASSWD:ALL"
|
|
|
|
|
2018-03-22 09:21:22 +01:00
|
|
|
- import_tasks: users.yml
|
2017-04-25 14:47:04 +02:00
|
|
|
|
|
|
|
- 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
|
|
|
|
|
2018-12-18 11:08:04 +01:00
|
|
|
#- import_tasks: docker.yml
|
2018-11-21 15:49:06 +01:00
|
|
|
|
|
|
|
|
|
|
|
- name: Log into DockerHub
|
|
|
|
docker_login:
|
|
|
|
registry: registry.webhosting.rug.nl
|
|
|
|
username: "{{ docker_user }}"
|
|
|
|
password: "{{ docker_pass }}"
|