ansible-role-nginx/tasks/setup-RedHat.yml

12 lines
237 B
YAML
Raw Normal View History

---
- name: Enable nginx repo.
template:
src: nginx.repo.j2
dest: /etc/yum.repos.d/nginx.repo
owner: root
group: root
mode: 0644
- name: Ensure nginx is installed.
yum: pkg=nginx state=installed enablerepo=nginx