dotfiles/tasks/ntp.yml
Jake Howard ab945b0a48
Replace with_items for loop
It's the new way, apparently
2019-12-09 21:09:00 +00:00

20 lines
342 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"
loop:
- ntp
- name: Set timezone
timezone:
name: Europe/London
- name: Enable NTP service
systemd:
name: "ntpd"
enabled: true
state: started