mirror of
https://github.com/rocky-linux/infrastructure
synced 2024-12-23 11:28:30 +00:00
fcdf86b31c
This commit appends the README.md to state that yaml files should start with `---` and end with `...`. This also addresses some linting warnings that were not appearing during pre-commit on local system.
34 lines
795 B
YAML
34 lines
795 B
YAML
---
|
|
- name: Create overrides if we're an IPA Replica
|
|
include_vars: "{{ item }}"
|
|
with_first_found:
|
|
- "chronyserver.yml"
|
|
when: "'chronyservers' in group_names"
|
|
|
|
- name: Install chrony packages
|
|
yum:
|
|
name: "{{ chrony_packages }}"
|
|
state: present
|
|
|
|
- name: Fix permissions for chrony home directory
|
|
file:
|
|
path: "{{ chrony_homedir }}"
|
|
mode: 0750
|
|
state: directory
|
|
|
|
- name: Deploy configuration
|
|
template:
|
|
src: chrony.conf.j2
|
|
dest: "{{ chrony_config_file }}"
|
|
owner: "{{ chrony_owner }}"
|
|
group: "{{ chrony_group }}"
|
|
mode: "{{ chrony_mode }}"
|
|
notify: "chrony service restart"
|
|
|
|
- name: Manage the state of service
|
|
systemd:
|
|
name: "{{ chrony_service_name }}"
|
|
state: "{{ chrony_service_state }}"
|
|
enabled: "{{ chrony_service_enabled }}"
|
|
...
|