2020-03-02 19:37:11 +00:00
|
|
|
- name: Install docker-compose
|
2020-01-28 21:32:29 +00:00
|
|
|
apt:
|
2020-03-02 19:37:11 +00:00
|
|
|
name: "docker-compose"
|
2020-01-28 21:32:29 +00:00
|
|
|
become: true
|
|
|
|
become_user: root
|
|
|
|
|
|
|
|
- name: Create docker user
|
|
|
|
user:
|
|
|
|
name: "{{ docker_user.name }}"
|
|
|
|
uid: "{{ docker_user.id }}"
|
|
|
|
group: "{{ docker_user.name }}"
|
|
|
|
create_home: false
|
2020-01-30 13:27:10 +00:00
|
|
|
|
|
|
|
- name: Clean up docker containers
|
|
|
|
cron:
|
|
|
|
name: clean up docker containers
|
|
|
|
special_time: weekly
|
|
|
|
job: "docker system prune"
|
2020-02-02 22:20:17 +00:00
|
|
|
|
|
|
|
- name: Install util scripts
|
|
|
|
copy:
|
|
|
|
src: ./files/docker-utils
|
|
|
|
dest: "{{ home }}"
|
|
|
|
mode: 0755
|
|
|
|
directory_mode: 0755
|