From 855e316f763ac6e084c0238a6e5b83a5971d4368 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Mon, 20 Nov 2017 14:08:19 +0200 Subject: [PATCH] Use Systemd module, available (correctly) in Ansible 2.4. --- workstation.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workstation.yml b/workstation.yml index 7b4c034..0503234 100644 --- a/workstation.yml +++ b/workstation.yml @@ -8,7 +8,8 @@ docker_graph_directory: '/home/{{ ansible_env.SUDO_USER }}/.bind_mounts/docker' handlers: - name: Systemd daemon reload - command: /bin/systemctl daemon-reload + systemd: + daemon_reload: yes - name: Restart Docker service: @@ -22,6 +23,7 @@ - ansible_pkg_mgr == 'apt' - ansible_service_mgr == 'systemd' - ansible_architecture == 'x86_64' + - ansible_version.full | version_compare('2.4', '>=') - name: APT install with_items: -- GitLab