Zack Williams | f809afe | 2021-02-11 17:46:12 -0700 | [diff] [blame^] | 1 | --- |
| 2 | # chrony tasks/main.yml |
| 3 | # |
| 4 | # SPDX-FileCopyrightText: © 2021 Open Networking Foundation <support@opennetworking.org> |
| 5 | # SPDX-License-Identifier: Apache-2.0 |
| 6 | |
| 7 | - name: include OS-specific vars |
| 8 | include_vars: "{{ ansible_os_family }}.yml" |
| 9 | |
| 10 | - name: include OS-specific tasks |
| 11 | include_tasks: "{{ ansible_os_family }}.yml" |
| 12 | |
| 13 | - name: Create chrony.conf configuration file from template |
| 14 | template: |
| 15 | src: "chrony.conf.j2" |
| 16 | dest: "{{ chrony_conf_dir }}/chrony.conf" |
| 17 | owner: root |
| 18 | group: root |
| 19 | mode: 0644 |
| 20 | backup: true |
| 21 | notify: |
| 22 | - restart-chrony |