Skip to content
Snippets Groups Projects
Commit 5d4ce67b authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: uninstall NTPd on all distributions, so use system-agnostig package...

fix: uninstall NTPd on all distributions, so use system-agnostig package management, remove distro-restrictions and remove config file
parent baddd42c
Branches
No related tags found
No related merge requests found
--- ---
# copy module modifies parent directory permissions, when file or directory is copied with owner and group different than root. It is also not idempotent and changes on subsequent runs. # copy module modifies parent directory permissions, when file or directory is copied with owner and group different than root. It is also not idempotent and changes on subsequent runs.
- name: configure NTP - name: configure NTP
ansible.builtin.copy: ansible.builtin.file:
src: "etc/ntp.conf" path: "/etc/ntp.conf"
dest: "/etc/ntp.conf" state: absent
owner: "root"
group: "root"
mode: "0644"
tags: [molecule-idempotence-notest]
...@@ -146,7 +146,6 @@ ...@@ -146,7 +146,6 @@
- name: NTP konfigurieren - name: NTP konfigurieren
import_tasks: configure_ntp.yml import_tasks: configure_ntp.yml
when: ansible_os_family == "RedHat"
tags: [ntp] tags: [ntp]
# there's no way to get this task to become idempotent, so we have to skip the test # there's no way to get this task to become idempotent, so we have to skip the test
......
--- ---
- name: purge NTPd package - name: purge NTPd package
ansible.builtin.apt: ansible.builtin.package:
name: "ntp" name: "ntp"
state: absent state: absent
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment