ansible/roles/nginx/tasks/Debian.yaml

13 lines
370 B
YAML
Raw Normal View History

2020-09-21 03:44:45 +00:00
---
- name: install nginx apt key
apt_key:
keyserver: keyserver.ubuntu.com
id: "{{ nginx_repo_key_id }}"
- name: install nginx apt repo
apt_repository:
repo: "deb http://nginx.org/packages/mainline/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} nginx"
update_cache: yes
filename: nginx
state: "{{ nginx_repo_state }}"