Only add Debian repositories when installing role in amd64 archs (#212)

This commit is contained in:
Alessandro Fael Garcia 2019-12-30 18:46:15 +01:00 committed by GitHub
parent 50a6338a35
commit d661ff4db9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -2,4 +2,4 @@
- name: "(Install: Debian/Ubuntu) Add NGINX Amplify Agent Repository" - name: "(Install: Debian/Ubuntu) Add NGINX Amplify Agent Repository"
apt_repository: apt_repository:
filename: nginx-amplify filename: nginx-amplify
repo: deb http://packages.amplify.nginx.com/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release|lower }} amplify-agent repo: deb [arch=amd64] http://packages.amplify.nginx.com/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release|lower }} amplify-agent

View File

@ -2,7 +2,7 @@
- name: "(Install: Debian/Ubuntu) Add NGINX Controller Agent Repository" - name: "(Install: Debian/Ubuntu) Add NGINX Controller Agent Repository"
apt_repository: apt_repository:
filename: nginx-controller filename: nginx-controller
repo: deb https://packages.nginx.org/controller/{{ ansible_distribution | lower }}/ {{ ansible_distribution_release | lower }} controller repo: deb [arch=amd64] https://packages.nginx.org/controller/{{ ansible_distribution | lower }}/ {{ ansible_distribution_release | lower }} controller
- name: "(Install: CentOS/RedHat) Add NGINX Controller Agent Repository" - name: "(Install: CentOS/RedHat) Add NGINX Controller Agent Repository"
yum_repository: yum_repository:

View File

@ -1,7 +1,7 @@
--- ---
- name: "(Setup: Debian/Ubuntu) Setup NGINX Plus Repository" - name: "(Setup: Debian/Ubuntu) Setup NGINX Plus Repository"
apt_repository: apt_repository:
repo: deb https://plus-pkgs.nginx.com/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} nginx-plus repo: deb [arch=amd64] https://plus-pkgs.nginx.com/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} nginx-plus
filename: nginx-plus filename: nginx-plus
update_cache: no update_cache: no
state: "{{ nginx_license_status | default ('present') }}" state: "{{ nginx_license_status | default ('present') }}"

View File

@ -3,5 +3,5 @@
apt_repository: apt_repository:
repo: "{{ item }}" repo: "{{ item }}"
with_items: with_items:
- deb https://packages.nginx.org/unit/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release }} unit - deb [arch=amd64] https://packages.nginx.org/unit/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release }} unit
- deb-src https://packages.nginx.org/unit/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release }} unit - deb-src [arch=amd64] https://packages.nginx.org/unit/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release }} unit