You've already forked ansible-role-common
Cleaning up
This commit is contained in:
@@ -1,6 +1,15 @@
|
|||||||
---
|
---
|
||||||
# tasks file for common role
|
# tasks file for common role
|
||||||
|
|
||||||
|
|
||||||
|
- name: Ensure common packages
|
||||||
|
yum:
|
||||||
|
name: "{{item}}"
|
||||||
|
state: present
|
||||||
|
enablerepo: epel
|
||||||
|
with_items: "{{ common_packages }}"
|
||||||
|
tags: packages
|
||||||
|
|
||||||
- name: Ensure SELinux status
|
- name: Ensure SELinux status
|
||||||
selinux:
|
selinux:
|
||||||
state: disabled
|
state: disabled
|
||||||
@@ -21,13 +30,7 @@
|
|||||||
line: "installonly_limit=2"
|
line: "installonly_limit=2"
|
||||||
tags: packages
|
tags: packages
|
||||||
|
|
||||||
- name: Ensure common packages
|
|
||||||
yum:
|
|
||||||
name: "{{item}}"
|
|
||||||
state: present
|
|
||||||
enablerepo: epel
|
|
||||||
with_items: "{{ common_packages }}"
|
|
||||||
tags: packages
|
|
||||||
|
|
||||||
- name: Ensure Hostname is set
|
- name: Ensure Hostname is set
|
||||||
hostname:
|
hostname:
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
# This file is managed by Ansible #
|
|
||||||
## DO NOT edit manually as changes will be overwritten ##
|
|
||||||
|
|
||||||
driftfile /var/lib/ntp/drift
|
|
||||||
restrict default kod nomodify notrap nopeer noquery
|
|
||||||
restrict -6 default kod nomodify notrap nopeer noquery
|
|
||||||
restrict 127.0.0.1
|
|
||||||
restrict -6 ::1
|
|
||||||
|
|
||||||
# Use servers configured via Ansible
|
|
||||||
{% for server in ntp_servers %}
|
|
||||||
server {{ server }}
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
# Fallback
|
|
||||||
server nz.pool.ntp.org
|
|
||||||
|
|
||||||
includefile /etc/ntp/crypto/pw
|
|
||||||
keys /etc/ntp/keys
|
|
||||||
Reference in New Issue
Block a user