agaric-coop/box/provisioning/roles/geerlingguy.nginx/tasks/setup-RedHat.yml

14 lines
283 B
YAML

---
- name: Enable nginx repo.
template:
src: nginx.repo.j2
dest: /etc/yum.repos.d/nginx.repo
owner: root
group: root
mode: 0644
when: nginx_yum_repo_enabled
- name: Ensure nginx is installed.
yum:
name: "{{ nginx_package_name }}"
state: installed