ansible-role-nginx/tasks/setup-RedHat.yml
Jamie Burchell 047896db9e
Use package module instead of yum
I noticed that your other roles have switched to using the package module instead of yum.
2019-05-13 20:03:36 +01:00

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