nginx/tasks/setup-RedHat.yml

15 lines
295 B
YAML
Raw Normal View History

2019-04-14 13:51:48 +00:00
---
- name: Enable nginx repo.
template:
src: nginx.repo.j2
dest: /etc/yum.repos.d/nginx.repo
owner: root
group: "{{ root_group }}"
mode: 0644
when: nginx_yum_repo_enabled
- name: Ensure nginx is installed.
yum:
name: "{{ nginx_package_name }}"
state: present