base / dist enabled services
At some point not too long ago we set 'logrotate.timer' as a dist enabled service. This mostly works fine as all supported Fedora and RHEL releases have this. However, we still have some old unsupported hosts (like notifs-backend01) and this caused playbooks to fail on them. So, lets conditionalize it only to newer ones so we can run playbooks on the EOL ones. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
9e69aa3087
commit
f56d189995
1 changed files with 1 additions and 0 deletions
|
@ -226,6 +226,7 @@
|
||||||
- service
|
- service
|
||||||
- config
|
- config
|
||||||
- base
|
- base
|
||||||
|
when: ansible_distribution_major_version|int > 31 and ansible_distribution == 'Fedora' or ansible_distribution == 'RedHat'
|
||||||
|
|
||||||
- name: iptables
|
- name: iptables
|
||||||
template: src={{ item }} dest=/etc/sysconfig/iptables mode=0600 validate="/sbin/iptables-restore --test %s"
|
template: src={{ item }} dest=/etc/sysconfig/iptables mode=0600 validate="/sbin/iptables-restore --test %s"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue