Giter Club home page Giter Club logo

Comments (5)

Raffaello avatar Raffaello commented on July 17, 2024

please also note:

This module configures the timezone setting, both of the system clock and of the hardware clock. If you want to set up the NTP, use service module.

ref: https://docs.ansible.com/ansible/timezone_module.html

so it seems the timezone module is causing the issue and ntp timezone should be set up differently

from ansible-role-ntp.

geerlingguy avatar geerlingguy commented on July 17, 2024

@Raffaello - NTP is being managed as a service here: https://github.com/geerlingguy/ansible-role-ntp/blob/master/tasks/main.yml#L17-L29

It seems to be working okay for meβ€”can you give any more detail about how the playbook is configured, or even better a playbook/project that I could use to reproduce this issue?

from ansible-role-ntp.

Raffaello avatar Raffaello commented on July 17, 2024

@geerlingguy Hi, thank you, here extra info:

  • ansible version 2.1.3.0
  • OS: ubuntu 14.04.5 LTS
  • Python 2.7.6

I spent some time and it seems ansible doesn't recognize the timezone module, it is only that task that make it failing. I tried removing the timezone task and everything was successful.

the playbook is quite simple, it using a main role and inside that role i added a dependency on this NTP role.

# playbook entry point
- name: Build MyServer Service Instance
  hosts: "{{ hosts }}"

  roles:
    - role: my_server
      become: true

### role my_server (meta/defaults.yml)

---

dependencies:
  - role: geerlingguy.ntp
   

if i comment out the task timezone is working. it seems in my ansible doesn't exist/recognize the timezone module.


this step is failing and reporting the error:
https://github.com/geerlingguy/ansible-role-ntp/blob/master/tasks/main.yml#L13-L15

from ansible-role-ntp.

Raffaello avatar Raffaello commented on July 17, 2024

@geerlingguy The problem is a bug in ansible 2.1.3.0 version. after upgrading ansible to 2.3.1.0. The timezone module was found and no error has happened.

so i am closing this issue because it was strictly related to an ansible bug reported also here:
ansible/ansible-modules-extras#3572

from ansible-role-ntp.

geerlingguy avatar geerlingguy commented on July 17, 2024

Great! Thanks for the follow-up.

from ansible-role-ntp.

Related Issues (20)

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.