summaryrefslogtreecommitdiffstats
path: root/roles/ntpserver/tasks/config.yml
blob: 299299099ef0f0961f72c1eb225917fc8cef118b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
- name: Configuration du service NTP
  template: src=ntp.conf.j2 dest=/etc/ntp.conf mode=644
  notify: restart ntp
  when: ansible_distribution == "CentOS"

- name: Configuration du service Chrony
  template: src=chrony.conf.j2 dest=/etc/chrony.conf mode=644
  notify: restart chrony
  when: ansible_distribution == "Fedora"

- name: Ouverture des ports Firewalld
  firewalld: service=ntp permanent={{ item }} state=enabled
  with_items:
    - true
    - false
  when: ansible_distribution == "Fedora"