Add OS family check (#224)

This commit is contained in:
Alessandro Fael Garcia 2020-02-04 17:11:16 +01:00 committed by GitHub
parent 1afb425c19
commit 9fba82755f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@
apt_repository:
filename: nginx-controller
repo: deb [arch=amd64] https://packages.nginx.org/controller/{{ ansible_distribution | lower }}/ {{ ansible_distribution_release | lower }} controller
when: ansible_os_family == "Debian"
- name: "(Install: CentOS/RedHat) Add NGINX Controller Agent Repository"
yum_repository:
@ -10,6 +11,7 @@
baseurl: https://packages.nginx.org/controller/centos/$releasever/$basearch/
description: NGINX Controller Agent
gpgcheck: yes
when: ansible_os_family == "RedHat"
- name: "(Install: All OSs) Install NGINX Controller Agent"
package: