2017-08-30から1日間の記事一覧

Ansibleでtimezonectlを使いタイムゾーンを設定する

マシンのTimezoneの設定もPlaybbook化してみる。 CentOS7では、timedatectlというコマンド経由で設定出来るので、それを利用する。 --- - hosts: all become: true become_user: root vars: timezone: Asia/Tokyo tasks: - name: 'タイムゾーンを確認' shell…