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

18 lines
318 B
YAML
Raw Normal View History

2021-09-01 17:31:49 -06:00
---
# 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 }}"