19 lines
348 B
YAML
19 lines
348 B
YAML
- name: "Install NTP"
|
|
aur:
|
|
skip_installed: true
|
|
name: "{{ item }}"
|
|
become: true
|
|
become_user: aur_builder
|
|
when: "item not in installed_packages.stdout_lines"
|
|
with_items:
|
|
- ntp
|
|
|
|
- name: Set timezone
|
|
timezone:
|
|
name: Europe/London
|
|
|
|
- name: Enable NTP service
|
|
systemd:
|
|
name: "ntpd"
|
|
enabled: true
|
|
state: started
|