Update ansible code
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
4c799f56b2
commit
5649568173
5 changed files with 26 additions and 24 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
---
|
---
|
||||||
- name: Restart chronyd
|
- name: Restart chronyd
|
||||||
service: name="chronyd" state=restarted
|
ansible.builtin.service:
|
||||||
|
name: "chronyd"
|
||||||
|
state: restarted
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,9 @@ galaxy_info:
|
||||||
version:
|
version:
|
||||||
- 7
|
- 7
|
||||||
- 8
|
- 8
|
||||||
|
- 9
|
||||||
- name: RedHat
|
- name: RedHat
|
||||||
version:
|
version:
|
||||||
- 7
|
- 7
|
||||||
- 8
|
- 8
|
||||||
|
- 9
|
||||||
|
|
|
||||||
|
|
@ -3,14 +3,14 @@
|
||||||
include_vars: "{{ ansible_os_family }}.yml"
|
include_vars: "{{ ansible_os_family }}.yml"
|
||||||
|
|
||||||
- name: Install chrony packages
|
- name: Install chrony packages
|
||||||
package:
|
ansible.builtin.package:
|
||||||
name: "{{ chrony_packages_name }}"
|
name: "{{ chrony_packages_name }}"
|
||||||
state: present
|
state: present
|
||||||
update_cache: yes
|
update_cache: true
|
||||||
notify: Restart chronyd
|
notify: Restart chronyd
|
||||||
|
|
||||||
- name: Deploy chronyd configuration
|
- name: Deploy chronyd configuration
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: chrony.conf.j2
|
src: chrony.conf.j2
|
||||||
dest: /etc/chrony.conf
|
dest: /etc/chrony.conf
|
||||||
owner: root
|
owner: root
|
||||||
|
|
@ -19,12 +19,12 @@
|
||||||
notify: Restart chronyd
|
notify: Restart chronyd
|
||||||
|
|
||||||
- name: Enable chronyd on boot
|
- name: Enable chronyd on boot
|
||||||
service:
|
ansible.builtin.service:
|
||||||
name: chronyd
|
name: chronyd
|
||||||
enabled: yes
|
enabled: true
|
||||||
|
|
||||||
- name: Open Firewalld
|
- name: Open Firewalld
|
||||||
firewalld:
|
ansible.posix.firewalld:
|
||||||
service: ntp
|
service: ntp
|
||||||
permanent: true
|
permanent: true
|
||||||
state: enabled
|
state: enabled
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
---
|
---
|
||||||
chrony_packages_name:
|
chrony_packages_name:
|
||||||
- chrony
|
- chrony
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue