infra/roles/nginx-role/tasks/setup-RedHat.yml
Sergey Bubnov (omg) 8dc65328a3 new nginx role
2019-06-29 01:27:16 +04:00

15 lines
306 B
YAML

---
- 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 | bool
- name: Ensure nginx is installed.
package:
name: "{{ nginx_package_name }}"
state: present