ceph: set NTP servers

This commit is contained in:
Timotej Lazar 2024-06-19 15:07:59 +02:00
parent 29598ef4bb
commit 4b34370d5d
2 changed files with 13 additions and 0 deletions

View file

@ -3,3 +3,9 @@
name: nftables name: nftables
state: reloaded state: reloaded
when: "'handler' not in ansible_skip_tags" when: "'handler' not in ansible_skip_tags"
- name: restart systemd-timesyncd
service:
name: systemd-timesyncd
state: restarted
when: "'handler' not in ansible_skip_tags"

View file

@ -3,6 +3,13 @@
dest: /etc/hosts dest: /etc/hosts
src: hosts.j2 src: hosts.j2
- name: Set up NTP servers
lineinfile:
path: /etc/systemd/timesyncd.conf
regexp: '^#?NTP='
line: 'NTP={{ ntp | join(" ") }}'
notify: restart systemd-timesyncd
- name: Generate my SSH key - name: Generate my SSH key
openssh_keypair: openssh_keypair:
path: /root/.ssh/id_ed25519 path: /root/.ssh/id_ed25519