Skip to content

Commit

Permalink
Docker TCP 5
Browse files Browse the repository at this point in the history
  • Loading branch information
lholota committed Sep 23, 2024
1 parent 927f8ef commit 0b24ae6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
5 changes: 0 additions & 5 deletions roles/docker/handlers/main.yaml

This file was deleted.

9 changes: 7 additions & 2 deletions roles/docker/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
state: directory

- name: Configure systemd service
notify: Restart docker
register: docker_systemd_override
ansible.builtin.lineinfile:
path: /etc/systemd/system/docker.service.d/override.conf
create: true
Expand All @@ -49,6 +49,11 @@
docker_edition: 'ce'
docker_add_repo: true
docker_packages_state: present
docker_service_state: started
docker_service_state: reloaded
docker_install_compose: true
docker_compose_package_state: present

- name: Start the systemd service
ansible.builtin.systemd_service:
name: docker
state: "{{ 'restarted' if docker_systemd_override.changed else 'started' }}"

0 comments on commit 0b24ae6

Please sign in to comment.