fmartingr
/
shelfzilla
Archived
1
0
Fork 0
This repository has been archived on 2021-06-29. You can view files and clone it, but cannot push or open issues or pull requests.
shelfzilla/provisioning/roles/common/tasks/main.yml

27 lines
574 B
YAML
Raw Normal View History

---
- name: be sure ntp is installed
yum: pkg=ntp state=installed
sudo: yes
- name: Install libselinux python
yum: pkg=libselinux-python state=installed
sudo: yes
- name: test to see if selinux is running
command: /usr/sbin/getenforce
register: sestatus
- name: Selinux Down
command: setenforce 0
when: sestatus == 'Enforcing'
- name: be sure ntp is configured
template: src=ntp.conf.j2 dest=/etc/ntp.conf
notify:
- restart ntpd
sudo: yes
- name: be sure ntpd is running and enabled
service: name=ntpd state=running enabled=yes
sudo: yes