Skip to content

Commit 0b440b8

Browse files
committed
seccomp fix
1 parent 2a6477f commit 0b440b8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

handlers/main.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,22 @@
1010
name: "{{ ntp_cron_daemon }}"
1111
state: restarted
1212
when: ntp_cron_handler_enabled | bool
13+
14+
## seccomp "fixes" for arm64 / container
15+
- name: Create chronyd override to disable seccomp
16+
copy:
17+
dest: /etc/systemd/system/chronyd.service.d/no-seccomp.conf
18+
content: |
19+
[Service]
20+
SystemCallFilter=
21+
mode: '0644'
22+
register: override_created
23+
when: ansible_architecture in ['aarch64', 'arm64']
24+
25+
26+
- name: Reload systemd and restart chronyd
27+
systemd:
28+
name: chronyd
29+
daemon_reload: yes
30+
state: restarted
31+
when: override_created.changed

0 commit comments

Comments
 (0)