Skip to content

Commit

Permalink
Make edpm_chrony role compliant with ansible-lint production profile
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Alfieri <[email protected]>
  • Loading branch information
rebtoor committed Oct 5, 2023
1 parent 19ed55e commit 8cbc644
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 148 deletions.
111 changes: 0 additions & 111 deletions roles/edpm_chrony/README.rst

This file was deleted.

2 changes: 1 addition & 1 deletion roles/edpm_chrony/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
dest: "{{ edpm_chrony_config_file_location }}"
owner: root
group: root
mode: 0644
mode: '0644'
register: edpm_chrony_config
notify: Restart chronyd
2 changes: 1 addition & 1 deletion roles/edpm_chrony/tasks/online.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ansible.builtin.copy:
src: files/chrony-online.service
dest: /etc/systemd/system/chrony-online.service
mode: 0644
mode: '0644'

- name: Enable chrony-online.service
become: true
Expand Down
6 changes: 6 additions & 0 deletions roles/edpm_chrony/tasks/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
- name: Force NTP sync
become: true
ansible.builtin.command: chronyc makestep
register: _makestep_command_output
changed_when: _makestep_command_output.rc == 0
failed_when: _makestep_command_output.rc != 0

- name: Ensure system is NTP time synced
ansible.builtin.command: chronyc waitsync 30
register: _waitsync_command_output
changed_when: _waitsync_command_output.rc == 0
failed_when: _waitsync_command_output.rc != 0
8 changes: 0 additions & 8 deletions roles/edpm_chrony/tests/all.yml

This file was deleted.

8 changes: 0 additions & 8 deletions roles/edpm_chrony/tests/config.yml

This file was deleted.

8 changes: 0 additions & 8 deletions roles/edpm_chrony/tests/install.yml

This file was deleted.

3 changes: 0 additions & 3 deletions roles/edpm_chrony/tests/inventory.yml

This file was deleted.

8 changes: 0 additions & 8 deletions roles/edpm_chrony/tests/upgrade.yml

This file was deleted.

0 comments on commit 8cbc644

Please sign in to comment.