blob: ceef3da090f9f5c1fdb5f8a4854780625ad9bab6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
---
# This playbook contains common plays that will be run on all nodes.
- name: Install ntp
yum:
name: ntp
state: present
tags: ntp
- name: Configure ntp file
template:
src: ntp.conf.j2
dest: /etc/ntp.conf
tags: ntp
notify: restart ntp
- name: Start the ntp service
service:
name: ntpd
state: started
enabled: yes
tags: ntp
- name: test to see if selinux is running
command: getenforce
register: sestatus
changed_when: false
|