Skip to content

Commit 373ab3a

Browse files
authored
Merge pull request #69 from gusttt/gpgkeyrepo
Only add repository key when nginx_repository is used.
2 parents 53a5c95 + c07792d commit 373ab3a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tasks/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
- import_tasks: prerequisites/install-prerequisites.yml
33

44
- import_tasks: keys/apt-key.yml
5-
when: ansible_os_family == "Debian"
5+
when:
6+
- ansible_os_family == "Debian"
7+
- nginx_install_from == "nginx_repository" or nginx_amplify_enable or nginx_controller_enable or nginx_unit_enable
68

79
- import_tasks: keys/rpm-key.yml
8-
when: ansible_os_family == "RedHat" or ansible_os_family == "Suse"
10+
when:
11+
- ansible_os_family == "RedHat" or ansible_os_family == "Suse"
12+
- nginx_install_from == "nginx_repository" or nginx_amplify_enable or nginx_controller_enable or nginx_unit_enable
913

1014
- name: "(Install: Debian/Ubuntu/CentOS/RedHat/FreeBSD) Install NGINX"
1115
block:

0 commit comments

Comments
 (0)