Only add repository key when nginx_repository is used.

Fix #68
This commit is contained in:
gusttt 2018-10-18 08:26:29 +02:00
parent 53a5c95781
commit fe32888347

View File

@ -2,10 +2,14 @@
- import_tasks: prerequisites/install-prerequisites.yml
- import_tasks: keys/apt-key.yml
when: ansible_os_family == "Debian"
when:
- ansible_os_family == "Debian"
- nginx_install_from == "nginx_repository"
- import_tasks: keys/rpm-key.yml
when: ansible_os_family == "RedHat" or ansible_os_family == "Suse"
when:
- ansible_os_family == "RedHat" or ansible_os_family == "Suse"
- nginx_install_from == "nginx_repository"
- name: "(Install: Debian/Ubuntu/CentOS/RedHat/FreeBSD) Install NGINX"
block: