d
Size: a a a
d
A
И
D•
АМ
- name: Set local time to UTC
ansible.builtin.debconf:
name: tzdata
question: tzdata/Zones/Etc
vtype: select
value: UTC
notify:
- Reconfigure tzdata package
- name: Set geographic area of the server to 'Etc'
ansible.builtin.debconf:
name: tzdata
question: tzdata/Areas
vtype: select
value: Etc
notify:
- Reconfigure tzdata package
handlers:
- name: Reconfigure tzdata package
ansible.builtin.command:
cmd: dpkg-reconfigure --frontend noninteractive --priority critical tzdata
АМ
АМ
TASK [Set local time to UTC] *******************************************************************************************************************************************************************************************
ok: [acct04] => {"changed": false, "current": {"Areas": "Europe", "Zones/Europe": "Moscow", "tzdata/Areas": "Europe", "tzdata/Zones/Africa": "", "tzdata/Zones/America": "", "tzdata/Zones/Antarctica": "", "tzdata/Zones/Arctic": "", "tzdata/Zones/Asia": "", "tzdata/Zones/Atlantic": "", "tzdata/Zones/Australia": "", "tzdata/Zones/Etc": "UTC", "tzdata/Zones/Europe": "Moscow", "tzdata/Zones/Indian": "", "tzdata/Zones/Pacific": "", "tzdata/Zones/SystemV": "", "tzdata/Zones/US": ""}, "msg": ""}
TASK [Set geographic area of the server to 'Etc'] **********************************************************************************************************************************************************************
changed: [acct04] => {"changed": true, "current": {"tzdata/Areas": "Etc"}, "msg": "", "previous": {"tzdata/Areas": "Europe"}}
RUNNING HANDLER [Reconfigure tzdata package] ***************************************************************************************************************************************************************************
changed: [acct04] => {"changed": true, "cmd": ["dpkg-reconfigure", "--frontend", "noninteractive", "--priority", "critical", "tzdata"], "delta": "0:00:00.167090", "end": "2021-11-18 20:35:47.654628", "msg": "", "rc": 0, "start": "2021-11-18 20:35:47.487538", "stderr": "\nCurrent default time zone: 'Europe/Moscow'\nLocal time is now: Thu 18 Nov 20:35:47 MSK 2021.\nUniversal Time is now: Thu Nov 18 17:35:47 UTC 2021.", "stderr_lines": ["", "Current default time zone: 'Europe/Moscow'", "Local time is now: Thu 18 Nov 20:35:47 MSK 2021.", "Universal Time is now: Thu Nov 18 17:35:47 UTC 2021."], "stdout": "", "stdout_lines": []}
АМ
АМ
SG
timezone
:- name: Configure timezone
timezone:
name: UTC
become: yes
SG
АМ
ansible.builtin.*
dpkg-reconfigure
по-разному отрабатываетP
SG
«
kk
«
А
kk
«