NTP Playbook


Description


ntpのインストール、初期設定を行います。

playbook構成

  • handlers
  • tasks
  • templates


handlers


restart ntpd
service restart ntpd


tasks


ntpのインストールとクライアントとしての初期設定を行う。

Task Name main.yml
Path common_roles/ntp/tasks/main.yml
tags ntp

task list

  • install ntp
  • ntpd slew mode setting
  • ntp setting
  • ntpdate setting
  • tart ntp
  • start ntpdate


templates


  • ntp.conf.j2
  • ntpd.j2
  • step-tickers.j2


vars


ntp_servers
参照先外部NTPサーバを定義

Vars Name ntp_servers
valu ip / domainname
default 0.jp.pool.ntp.org
1.jp.pool.ntp.org
2.jp.pool.ntp.org
3.jp.pool.ntp.org

example:

ntp_servers:
  - 0.jp.pool.ntp.org
  - 1.jp.pool.ntp.org
  - 2.jp.pool.ntp.org
  - 3.jp.pool.ntp.org

results matching ""

    No results matching ""