LoginSignup
8
6

More than 5 years have passed since last update.

[Linux][Ansible] timezoneの設定

Posted at

AnsibleでLinuxのtimezoneを設定する方法メモ

使用方法

以下のタスクをplaybookに追加します。

timezoneを設定するplaybook設定
- name: set timezone to Asia/Tokyo
  timezone:
    name: Asia/Tokyo

注意点として、timezone: 後の name: はインデントを1つ下げる必要があります。
(下げないと別タスクとして扱われてエラーになります)

関連

[Ubuntu16.04] timezoneの確認と設定 - Qiita

参考

timezone - Configure timezone setting — Ansible Documentation

8
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
6