diff options
author | Markos Chandras <mchandras@suse.de> | 2017-09-28 09:31:54 +0100 |
---|---|---|
committer | Markos Chandras <mchandras@suse.de> | 2017-09-28 09:33:29 +0100 |
commit | c55729a3077954bcfe54fee01b0923918fbb7889 (patch) | |
tree | d38a26d41b0f3f8adddbcce125983f8ca60de47a /xci/playbooks | |
parent | 635b13830c4d01a5ea153aec9f79b55e059bb8b0 (diff) |
xci: playbooks: synchronize-time: Fix service name for openSUSE
In openSUSE, the chrony service is 'chronyd'.
Change-Id: Ifb946b0ba49783108a84dd5b998d9d45f5c9df51
Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci/playbooks')
-rw-r--r-- | xci/playbooks/roles/synchronize-time/tasks/main.yml | 2 |
1 files changed, 1 insertions, 1 deletions
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" |