Skip to content

Commit 4a14d94

Browse files
committed
Skip host time sync inside LXC
1 parent e59e176 commit 4a14d94

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎roles/common/tasks/main.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
name: systemd-timesyncd
2828
enabled: true
2929
state: started
30-
when: ansible_facts["service_mgr"] == "systemd"
30+
when:
31+
- ansible_facts["service_mgr"] == "systemd"
32+
- ansible_facts["virtualization_type"] != "lxc"
3133

3234
- name: Enable unattended upgrades
3335
ansible.builtin.systemd_service:

0 commit comments

Comments
 (0)