]> arthur.barton.de Git - AnsibleRoles.git/blob - roles/ntpd/tasks/main.yml
Update "apt" tasks to use lists
[AnsibleRoles.git] / roles / ntpd / tasks / main.yml
1 ---
2 # ntpd tasks
3
4 - name: /etc/ntp.conf file
5   tags:
6     - ntpd
7   template: >
8     dest=/etc/ntp.conf
9     group=root
10     mode=0644
11     owner=root
12     src=ntp.conf.j2
13   notify:
14     - restart "ntp"
15
16 - name: install "ntpdate" and "ntp"
17   tags:
18     - ntpd
19     - packages
20   apt:
21     name: [
22       'ntpdate',
23       'ntp',
24     ]
25     state: present
26
27 - name: ensure service "ntp" is enabled and started
28   tags:
29     - ntpd
30     - services
31   service: >
32     enabled=yes
33     name=ntp
34     state=started