mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-09-08 21:27:36 +02:00
build
This commit is contained in:
@@ -18,6 +18,24 @@
|
|||||||
XDG_CONFIG_HOME: /home/jd/.config
|
XDG_CONFIG_HOME: /home/jd/.config
|
||||||
KUBECONFIG: "{{ kubeconfig }}"
|
KUBECONFIG: "{{ kubeconfig }}"
|
||||||
block:
|
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
|
- name: Create apt proxy file
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
dest: /etc/apt/apt.conf.d/02proxy
|
dest: /etc/apt/apt.conf.d/02proxy
|
||||||
|
|||||||
Reference in New Issue
Block a user