Skip to content

Commit 9888d40

Browse files
committed
add sudo
1 parent 55a3fb8 commit 9888d40

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/software/embedded/ansible/tasks/enable_ntp.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
- name: Make sure NTP is enabled to sync time for set_up.yml
33
block:
44
- name: Enable automatic time synchronization
5-
ansible.builtin.command: timedatectl set-ntp on
5+
ansible.builtin.command: sudo timedatectl set-ntp on
66
changed_when: true
77

88
- name: Ensure the systemd-timesyncd service is running and enabled
99
ansible.builtin.systemd_service:
1010
name: systemd-timesyncd
1111
state: started
12-
enabled: yes
12+
enabled: yes
13+

0 commit comments

Comments
 (0)