Monty Taylor a4a134815c
Add exim role to base playbook
We want email to work.

Add a default value so that integration tests work - and update the
template so that if the value in the alias mapping is empty we don't
write out a half-formed alias.

Enable the epel repo on CentOS nodes in base-repos. This is done in
install_puppet.sh, but install_puppet.sh doesn't get run on ansible-only
nodes.

Change-Id: I68ad9f66c3b8672d9642c7764e50adac9cafdaf9
2018-08-13 09:20:36 -05:00

22 lines
575 B
YAML

- name: Install epel-release
yum:
name: epel-release
# there is a bug (rhbz#1261747) where systemd can fail to enable
# services due to selinux errors after upgrade. A work-around is
# to install the latest version of selinux and systemd here and
# restart the daemon for good measure after it is upgraded.
- name: Install latest selinux-policy and systemd
yum:
name: "{{ item }}"
state: latest
loop:
- selinux-policy
- systemd
register: systemd_updated
- name: Restart systemd
systemd:
daemon_reload: yes
when: systemd_updated|changed