Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,17 @@
register: current_clocksource

- name: Set the hardware clock
command: hwclock --systohc
command: hwclock --systohc --verbose
become: true
become_method: sudo
become_user: root
Comment on lines +35 to +37

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

environment:
PATH: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# unless system clock is using kvm-clock
when: current_clocksource.stdout.find('kvm-clock') == -1
tags:
- timezone
ignore_errors: true

# configure Kerberos
- import_tasks: kerberos.yml
Expand Down
8 changes: 7 additions & 1 deletion tools/prep-fog-capture.yml

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modifying this file isn't necessary for your stated use case of VMs or containers.

Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,10 @@
when: '"chrony" in ntp_service'

- name: Sync the hardware clock
command: "hwclock --systohc"
command: "hwclock --systohc --verbose"
become: true
become_method: sudo
become_user: root
environment:
PATH: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
ignore_errors: true