Skip to content
Snippets Groups Projects
Commit 855e316f authored by nimrod's avatar nimrod
Browse files

Use Systemd module, available (correctly) in Ansible 2.4.

parent f2e18e5b
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
docker_graph_directory: '/home/{{ ansible_env.SUDO_USER }}/.bind_mounts/docker' docker_graph_directory: '/home/{{ ansible_env.SUDO_USER }}/.bind_mounts/docker'
handlers: handlers:
- name: Systemd daemon reload - name: Systemd daemon reload
command: /bin/systemctl daemon-reload systemd:
daemon_reload: yes
- name: Restart Docker - name: Restart Docker
service: service:
...@@ -22,6 +23,7 @@ ...@@ -22,6 +23,7 @@
- ansible_pkg_mgr == 'apt' - ansible_pkg_mgr == 'apt'
- ansible_service_mgr == 'systemd' - ansible_service_mgr == 'systemd'
- ansible_architecture == 'x86_64' - ansible_architecture == 'x86_64'
- ansible_version.full | version_compare('2.4', '>=')
- name: APT install - name: APT install
with_items: with_items:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment