mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-10-28 13:07:06 +01:00
build
This commit is contained in:
1 parent
9f1340df9e
commit
b7110f0fb7
1 file changed
+18
@@ -18,6 +18,24 @@
|
||||
XDG_CONFIG_HOME: /home/jd/.config
|
||||
KUBECONFIG: "{{ kubeconfig }}"
|
||||
block:
|
||||
- name: Enable NTP synchronization
|
||||
ansible.builtin.command: timedatectl set-ntp true
|
||||
changed_when: false
|
||||
|
||||
- name: Restart systemd-timesyncd
|
||||
ansible.builtin.service:
|
||||
name: systemd-timesyncd
|
||||
state: restarted
|
||||
enabled: true
|
||||
|
||||
- name: Wait for time synchronization
|
||||
ansible.builtin.command: timedatectl status
|
||||
register: timedatectl_status
|
||||
retries: 10
|
||||
delay: 6
|
||||
until: "'System clock synchronized: yes' in timedatectl_status.stdout"
|
||||
changed_when: false
|
||||
|
||||
- name: Create apt proxy file
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/apt/apt.conf.d/02proxy
|
||||
|
||||
Reference in new issue
Block a user