1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_collection_time.git synced 2024-08-16 10:09:54 +02:00
Find a file
L3D fc7c72b8f2
Merge pull request #1 from roles-ansible/101
Consider using ntpsec for ntp on debian
2023-11-28 03:23:56 +01:00
.github prepare ansible collection 2023-11-28 00:53:17 +01:00
meta Update required ansible version 2023-11-28 01:14:28 +01:00
roles Consider using ntpsec for ntp on debian 2023-11-28 03:22:27 +01:00
.gitmodules Adding version, ntp role and README 2023-11-28 01:13:08 +01:00
.yamllint prepare ansible collection 2023-11-28 00:53:17 +01:00
changelog prepare ansible collection 2023-11-28 00:53:17 +01:00
CHANGELOG.md prepare ansible collection 2023-11-28 00:53:17 +01:00
CHANGELOG.rst prepare ansible collection 2023-11-28 00:53:17 +01:00
galaxy.yml Consider using ntpsec for ntp on debian 2023-11-28 03:22:27 +01:00
LICENSE prepare ansible collection 2023-11-28 00:53:17 +01:00
README.md Consider using ntpsec for ntp on debian 2023-11-28 03:22:27 +01:00
requirements.yml Adding version, ntp role and README 2023-11-28 01:13:08 +01:00

collection l3d.time Maintainance License

Ansible Collection - l3d.time

This is the Ansible Collection l3d.time. A collection for our time manupulating ansible roles. Here are all our ansible roles for installing git server.

Ansible Roles in l3d.time

  • l3d.time.ntp - Ansible role to install and configure the Network Time Protocol (NTP) Daemon.

Using this Collection

You can install the collection using ansible-galaxy by running:

ansible-galaxy collection install l3d.time:1.0.1

Remember you can to Upgrade to the latest version of the l3d.time collection using the --upgrade parameter:

ansible-galaxy collection install l3d.time --upgrade

Or you could clone this collection in your local ansible project for example to collections/ansible_collections/l3d.time/. Make sure you checkout git submodules too. Example:

# Clone git Repo with submodules to specified path
git clone --recursive https://github.com/roles-ansible/ansible_collection_time.git collections/ansible_collections/l3d/time/

# change directory
cd collections/ansible_collections/l3d.time/

# optionally init git submodules
git submodule update --init --recursive

# optionally install all requirements
ansible-galaxy collection install -r requirements.yml --upgrade

You can also list a collection in requirements.yml:

---
collections:
  - name: l3d.time
    version: ">=1.0.1"

Include roles in your playbook

Example Playbook using the l3d.time.ntp role:

---
- name: "Install NTP Server from collection l3d.time"
  hosts: ntp.example.com
  roles:
    - {role: l3d.time.ntp, tags: ntp}
  vars:
    ntp_set_time_zone: true
    ntp_timezone: Zulu

Requirements

The roles in this collection using the community.general ansible Collections.

Example Requirements Installation:

# galaxy requirements
ansible-galaxy install -r requirements.yml --upgrade