Skip to content
This repository was archived by the owner on Jan 15, 2023. It is now read-only.

Commit b701a06

Browse files
committed
feat: reload systemd for Ubuntu 20 compatibility
1 parent 8fd2bb4 commit b701a06

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

roles/docker/tasks/configure.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
- name: Reset ssh connection to allow user changes to affect current user
1818
meta: reset_connection
1919

20+
- name: reload systemd
21+
command: systemctl daemon-reload
22+
when: ansible_distribution == 'Ubuntu' and ansible_lsb.major_release|int >= 20
23+
2024
- name: Start the docker service
2125
systemd:
2226
name: docker

0 commit comments

Comments
 (0)