Extract docker cleanup stuff into its own role
This commit is contained in:
parent
7a296c63a2
commit
9962d9103f
11 changed files with 7 additions and 7 deletions
|
@ -20,4 +20,5 @@
|
||||||
docker_install_compose: false # This role installs the binary directly, which is kinda nasty
|
docker_install_compose: false # This role installs the binary directly, which is kinda nasty
|
||||||
docker_users:
|
docker_users:
|
||||||
- "{{ user }}"
|
- "{{ user }}"
|
||||||
|
- docker-cleanup
|
||||||
- docker
|
- docker
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
- name: Include docker variables
|
||||||
|
include_vars: docker.yml
|
||||||
|
|
||||||
- name: Install docker-compose
|
- name: Install docker-compose
|
||||||
apt:
|
apt:
|
||||||
name: docker-compose
|
name: docker-compose
|
3
ansible/roles/docker-cleanup/vars/docker.yml
Normal file
3
ansible/roles/docker-cleanup/vars/docker.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
docker_user:
|
||||||
|
id: 3000
|
||||||
|
name: dockeruser
|
|
@ -1,9 +1,6 @@
|
||||||
- name: Include docker variables
|
- name: Include docker variables
|
||||||
include_vars: docker.yml
|
include_vars: docker.yml
|
||||||
|
|
||||||
- name: Install Docker
|
|
||||||
include: setup-docker.yml
|
|
||||||
|
|
||||||
# Applications
|
# Applications
|
||||||
|
|
||||||
- name: Install calibre
|
- name: Install calibre
|
||||||
|
|
|
@ -1,6 +1,2 @@
|
||||||
docker_user:
|
|
||||||
id: 3000
|
|
||||||
name: dockeruser
|
|
||||||
|
|
||||||
docker_compose_file_mask: 0664
|
docker_compose_file_mask: 0664
|
||||||
docker_compose_directory_mask: 0775
|
docker_compose_directory_mask: 0775
|
||||||
|
|
Loading…
Reference in a new issue