Files
fedora-infra_ansible/roles/varnish/tasks/main.yml
Stephen Smoogen 432a3a497b Go through and remove entries for EL6 and EL7
Using `git grep el6` and `git grep el7` and variants like EL-7 or
el-7, I found various entries and files which were no longer needed
with the current ansible. I updated text or tests to later versions of
RHEL as needed.

found entries for the fedora ami's for the original cloud and removed
those entries also.

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
2024-07-03 22:20:30 +00:00

45 lines
1.1 KiB
YAML

---
# Tasks to set up varnish
- name: install needed packages
package: name={{ item }} state=present
with_items:
- varnish
- make
tags:
- varnish
- packages
- name: set some varnishd selinux boolean
seboolean: name=varnishd_connect_any persistent=yes state=yes
tags:
- varnish
- selinux
- name: set domain_can_mmap_files selinux boolean
seboolean: name=domain_can_mmap_files persistent=yes state=yes
tags:
- varnish
- selinux
- name: install varnish /etc/systemd/system/varnish.service file (fedora 29+)
template: src=varnish.f29.j2 dest=/etc/systemd/system/varnish.service owner=root group=root
notify:
- reload systemd
- restart varnish
tags:
- varnish
when: ansible_distribution_major_version|int >= 29 and ansible_distribution == 'Fedora'
- name: install /etc/varnish/default.vcl (proxies)
template: src={{ varnish_group }}.vcl.j2 dest=/etc/varnish/default.vcl owner=root group=root
notify:
- restart varnish
tags:
- varnish
- name: make sure varnish is set to enabled on boot
service: enabled=yes name=varnish
tags:
- varnish