Giter VIP home page Giter VIP logo

ansible_systemd_timesyncd's People

Contributors

atem18 avatar dasj avatar deantvv avatar luminger avatar mr-pi avatar neumantm avatar slothofanarchy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ansible_systemd_timesyncd's Issues

Example Playbook: mapping values are not allowed in this context at line 4 column 22

Ansible beginner here, so maybe I'm doing something stupid. But running the example playbook gets me this:

$ ansible-playbook workstations-ntp-conf.yml 
ERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each:
JSON: Expecting value: line 1 column 1 (char 0)

Syntax Error while loading YAML.
  mapping values are not allowed in this context

The error appears to be in '/home/jakob.donotbackup/code/mfg-ansible/workstations-ntp-conf.yml': line 4, column 22, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  - systemd-timesyncd
    timesync_timezone: Europe/Berlin
                     ^ here

yamllint.com does not like it either:

Screenshot from 2021-01-30 17-26-01

Please make tag

Hi,

My servers have no access with Internet.
I would need a tarball accessible from Github.

Can you please make a release by tagging your master branch?

Thank you very much.

Role fails on Ubuntu

Changes made in dac573c depend on Aptitude being installed on the target server, which is generally not true - it fails on current Ubuntu LTS ( and IIRC Debian Stable doesn't install Aptitude either). The code is somewhat suspicious too: systemd-timesyncd might not be installable, but we start the unit anyway?

I created a PR to fix the issue: #17

EDIT. better explain what was tested

Role fails on devices without realtime clock

Hi,

I just ran this role against a pizero which doesn't have a RTC. In that case, the "Write adjtime" handler fails:

hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.

To fix, one could either:

  1. Add a variable "skip_rtc_update" or similar to skip the handler
  2. Try to detect if /dev/rtc exists and skip the handler if it doesn't
  3. Add a variable to specify the RTC device and a special value to skip RTC updates

I could create a PR for one of those options.

Please add a tag

Hello :)

could you please add tags on your code ?
thanks a lot ! it working great !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.