mirror of
https://github.com/geerlingguy/ansible-role-nginx.git
synced 2024-09-07 00:58:04 +02:00
15 lines
274 B
YAML
15 lines
274 B
YAML
---
|
|
- 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:
|
|
name: "{{ nginx_package_name }}"
|
|
state: installed
|
|
enablerepo: nginx
|