Ansible-Linux_Base/roles/base/tasks/redhat_time_sync.yml

17 lines
318 B
YAML

---
# file: roles/base/tasks/redhat_time_sync.yml
- name: Install chrony package
package:
name: chrony
state: present
- name: Start and enable chrony
service:
name: chronyd
state: started
enabled: yes
- name: Set timezone to defined variable
timezone:
name: "{{ base_core_timezone }}"