ansible-role-nginx/tasks/plus/setup-debian.yml
Alessandro Fael Garcia e2b83ac215 Initial role commit
2018-01-10 14:40:01 -08:00

13 lines
447 B
YAML

---
- name: "(Debian/Ubuntu) Add NGINX Plus Repository"
shell: printf "deb https://plus-pkgs.nginx.com/{{ ansible_distribution|lower }} `lsb_release -cs` nginx-plus\n" | sudo tee /etc/apt/sources.list.d/nginx-plus.list
- name: "(Debian/Ubuntu) Verify NGINX Plus License"
get_url:
url: https://cs.nginx.com/static/files/90nginx
dest: /etc/apt/apt.conf.d/90nginx
- name: "(Debian/Ubuntu) Update APT Cache"
apt:
update_cache: yes