From c55729a3077954bcfe54fee01b0923918fbb7889 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Thu, 28 Sep 2017 09:31:54 +0100 Subject: xci: playbooks: synchronize-time: Fix service name for openSUSE In openSUSE, the chrony service is 'chronyd'. Change-Id: Ifb946b0ba49783108a84dd5b998d9d45f5c9df51 Signed-off-by: Markos Chandras --- xci/playbooks/roles/synchronize-time/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xci/playbooks') diff --git a/xci/playbooks/roles/synchronize-time/tasks/main.yml b/xci/playbooks/roles/synchronize-time/tasks/main.yml index cc73c447..8f94d33f 100644 --- a/xci/playbooks/roles/synchronize-time/tasks/main.yml +++ b/xci/playbooks/roles/synchronize-time/tasks/main.yml @@ -13,7 +13,7 @@ state: latest - name: restart chrony service: - name: chrony + name: "{{ (ansible_pkg_mgr == 'apt') | ternary('chrony', 'chronyd') }}" state: restarted - name: synchronize time shell: "chronyc -a 'burst 4/4' && chronyc -a makestep" -- cgit 1.2.3-korg