You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
867 B
35 lines
867 B
---
|
|
# This role contains common plays that will run on all nodes.
|
|
|
|
- name: Create the repository for EPEL
|
|
copy: src=epel.repo dest=/etc/yum.repos.d/epel.repo
|
|
|
|
- name: Create the GPG key for EPEL
|
|
copy: src=RPM-GPG-KEY-EPEL-6 dest=/etc/pki/rpm-gpg
|
|
|
|
- name: install some useful nagios plugins
|
|
yum: name=$item state=present
|
|
with_items:
|
|
- nagios-nrpe
|
|
- nagios-plugins-swap
|
|
- nagios-plugins-users
|
|
- nagios-plugins-procs
|
|
- nagios-plugins-load
|
|
- nagios-plugins-disk
|
|
|
|
- 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=true
|
|
tags: ntp
|
|
|
|
- name: insert iptables template
|
|
template: src=iptables.j2 dest=/etc/sysconfig/iptables
|
|
notify: restart iptables
|
|
|