Moving setup into its own role, where we just set up the system configuuration for running k3s'
This commit is contained in:
6
docker-host/roles/setup/handlers/docker-cleanup.yml
Normal file
6
docker-host/roles/setup/handlers/docker-cleanup.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
- name: Cleanup old containers
|
||||
become: yes
|
||||
become_method: sudo
|
||||
listen: cleanup-docker
|
||||
command: docker images | grep none | awk '{print $3}' | xargs docker rmi
|
||||
|
||||
6
docker-host/roles/setup/handlers/nginx.yml
Normal file
6
docker-host/roles/setup/handlers/nginx.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
- name: Restart Nginx
|
||||
listen: restart-nginx
|
||||
service:
|
||||
name: nginx
|
||||
state: restarted
|
||||
|
||||
Reference in New Issue
Block a user