shalomb / ansible-systemd-timesyncd Goto Github PK
View Code? Open in Web Editor NEWAnsible role to configure systemd-timesyncd's NTP and timezone parameters
Ansible role to configure systemd-timesyncd's NTP and timezone parameters
It seems like we rely on python + pypa 2.x still.
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Very good work on this Ansible Role and Git Repo.
I found some misspellings in your readme.md.
In Dependencies section:
Debian-based running systemd-timesyncd (NOTE: systemd on the Redhat family (RHEL/Fedora/CentOs) is not compiled with timesyncd for NTP syncrhonization and uses chrony instelad)
Should be
Debian-based running systemd-timesyncd (NOTE: systemd on the Redhat family (RHEL/Fedora/CentOs) is not compiled with timesyncd for NTP synchronization and uses chrony instead)
Again, thanks for your hard work and contribution to Ansible, and Open Source.
I have noticed that the task "timesyncd : Assert systemd-timesyncd status" from
ansible-systemd-timesyncd/tasks/tests.yml
Line 32 in f5db226
failed: [machine] (item={'regex': 'Started Network Time Synchronization', 'fail_msg': 'systemd-timesyncd does not appear to have started NTP Synchronization'}) => changed=false
ansible_loop_var: item
assertion: timesyncd_status.stdout | regex_search("Started Network Time Synchronization")
evaluated_to: false
item:
fail_msg: systemd-timesyncd does not appear to have started NTP Synchronization
regex: Started Network Time Synchronization
msg: systemd-timesyncd does not appear to have started NTP Synchronization
The output of sudo systemctl status systemd-timesyncd
on the machine is:
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2021-11-30 00:13:23 CET; 3 weeks 1 days ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 420 (systemd-timesyn)
Status: "Initial synchronization to time server INTERNAL_IP:123 (INTERNAL_IP)."
Tasks: 2 (limit: 4557)
Memory: 1.3M
CGroup: /system.slice/systemd-timesyncd.service
└─420 /lib/systemd/systemd-timesyncd
Warning: journal has been rotated since unit was started, output may be incomplete.
everything is operating fine and yet the task asserts a failure. Perhaps it is not the most robust technique to try and regex-scrape the output of a shell
command to try and look for logs of a service? I personally think this test can be removed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.