Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding option to configure RTC changes #10

Closed
wants to merge 1 commit into from

Conversation

dschanoeh
Copy link

@dschanoeh dschanoeh commented Jul 11, 2020

Fixes #9

@haslersn haslersn requested a review from dasJ July 12, 2020 19:09
@@ -5,3 +5,5 @@ timesync_fallback_ntp_hosts:
- 1.pool.ntp.org
- 2.pool.ntp.org
- 3.pool.ntp.org
timesync_rtc_set: auto
timesync_rtc_dev: /dev/rtc
Copy link
Member

Choose a reason for hiding this comment

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

Please insert new line at the end of the file.

when: timesync_rtc_set == "auto" and rtc_dev.stat.exists and rtc.dev.stat.writeable and (ansible_virtualization_role == "host" or ansible_virtualization_role == "NA")

- name: Wait for time to synchronize
shell: "timedatectl | grep 'NTP synchronized' | cut -d' ' -f3"
Copy link
Member

Choose a reason for hiding this comment

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

When I run timedatectl on any on my machines, there is no such output NTP synchronized.
My output is:

               Local time: <timestamp>
           Universal time: <timestamp>
                 RTC time: <timestamp>
                Time zone: <tz>
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

Can you explain under which circumstances the output NTP synchronized will occur?

@neumantm
Copy link
Member

Closed because of inactivity.

@neumantm neumantm closed this Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Role fails on devices without realtime clock
2 participants