This commit is contained in:
parent
b7446b79c0
commit
ae128a537d
1 changed files with 13 additions and 3 deletions
|
|
@ -3,15 +3,25 @@
|
|||
include_vars: "{{ ansible_os_family }}.yml"
|
||||
|
||||
- name: Install chrony packages
|
||||
package: name="{{ chrony_packages_name }}" state=latest update_cache=yes
|
||||
package:
|
||||
name: "{{ chrony_packages_name }}"
|
||||
state: present
|
||||
update_cache: yes
|
||||
notify: Restart chronyd
|
||||
|
||||
- name: Deploy chronyd configuration
|
||||
template: src=chrony.conf.j2 dest=/etc/chrony.conf owner=root group=root mode=0644
|
||||
template:
|
||||
src: chrony.conf.j2
|
||||
dest: /etc/chrony.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify: Restart chronyd
|
||||
|
||||
- name: Enable chronyd on boot
|
||||
service: name=chronyd enabled=yes
|
||||
service:
|
||||
name: chronyd
|
||||
enabled: yes
|
||||
|
||||
- name: Open Firewalld
|
||||
firewalld:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue