Skip to content

Commit 9fba827

Browse files
authored
Add OS family check (#224)
1 parent 1afb425 commit 9fba827

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tasks/controller/setup-controller-repository.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
apt_repository:
44
filename: nginx-controller
55
repo: deb [arch=amd64] https://packages.nginx.org/controller/{{ ansible_distribution | lower }}/ {{ ansible_distribution_release | lower }} controller
6+
when: ansible_os_family == "Debian"
67

78
- name: "(Install: CentOS/RedHat) Add NGINX Controller Agent Repository"
89
yum_repository:
910
name: nginx-controller
1011
baseurl: https://packages.nginx.org/controller/centos/$releasever/$basearch/
1112
description: NGINX Controller Agent
1213
gpgcheck: yes
14+
when: ansible_os_family == "RedHat"
1315

1416
- name: "(Install: All OSs) Install NGINX Controller Agent"
1517
package:

0 commit comments

Comments
 (0)