Skip to content

Commit

Permalink
add handler for Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-luna-valero committed Jul 3, 2024
1 parent 6a1c6de commit e1bc085
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 5 additions & 0 deletions deploy/roles/catchall/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- name: Restart docker
ansible.builtin.systemd:
name: docker
state: restarted
daemon_reload: true
10 changes: 4 additions & 6 deletions deploy/roles/catchall/tasks/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
path: /etc/docker
state: directory
mode: "775"
notify:
- Restart docker

- name: Configure docker
ansible.builtin.copy:
Expand All @@ -51,9 +53,5 @@
}
dest: /etc/docker/daemon.json
mode: "660"

- name: Restart docker
ansible.builtin.systemd:
name: docker
state: restarted
daemon_reload: true
notify:
- Restart docker

0 comments on commit e1bc085

Please sign in to comment.