2022-05-26 15:31:39 +00:00
|
|
|
---
|
|
|
|
|
2022-05-30 19:35:02 +00:00
|
|
|
- name: "Sync time - first try (needed by apt)"
|
2022-05-26 15:31:39 +00:00
|
|
|
ansible.builtin.shell:
|
2022-05-30 19:35:02 +00:00
|
|
|
cmd: hash ntpdate 2>/dev/null && ntpdate 0.debian.pool.ntp.org
|
|
|
|
ignore_errors: 'yes'
|
|
|
|
no_log: 'yes'
|
2022-05-26 15:31:39 +00:00
|
|
|
|
|
|
|
- name: Install required system packages
|
|
|
|
ansible.builtin.apt:
|
|
|
|
name:
|
|
|
|
- vim
|
|
|
|
- ntpdate
|
|
|
|
state: latest
|
|
|
|
update_cache: true
|
|
|
|
|
2022-05-30 19:35:02 +00:00
|
|
|
- name: "Sync time - for real (needed by sshwifty)"
|
2022-05-26 15:31:39 +00:00
|
|
|
ansible.builtin.command:
|
|
|
|
cmd: ntpdate 0.debian.pool.ntp.org
|
|
|
|
|
|
|
|
#
|