Skip to content

Commit d661ff4

Browse files
authored
Only add Debian repositories when installing role in amd64 archs (#212)
1 parent 50a6338 commit d661ff4

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tasks/amplify/setup-debian.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
- name: "(Install: Debian/Ubuntu) Add NGINX Amplify Agent Repository"
33
apt_repository:
44
filename: nginx-amplify
5-
repo: deb http://packages.amplify.nginx.com/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release|lower }} amplify-agent
5+
repo: deb [arch=amd64] http://packages.amplify.nginx.com/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release|lower }} amplify-agent

tasks/controller/setup-controller-repository.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
- name: "(Install: Debian/Ubuntu) Add NGINX Controller Agent Repository"
33
apt_repository:
44
filename: nginx-controller
5-
repo: deb https://packages.nginx.org/controller/{{ ansible_distribution | lower }}/ {{ ansible_distribution_release | lower }} controller
5+
repo: deb [arch=amd64] https://packages.nginx.org/controller/{{ ansible_distribution | lower }}/ {{ ansible_distribution_release | lower }} controller
66

77
- name: "(Install: CentOS/RedHat) Add NGINX Controller Agent Repository"
88
yum_repository:

tasks/plus/setup-debian.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
- name: "(Setup: Debian/Ubuntu) Setup NGINX Plus Repository"
33
apt_repository:
4-
repo: deb https://plus-pkgs.nginx.com/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} nginx-plus
4+
repo: deb [arch=amd64] https://plus-pkgs.nginx.com/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} nginx-plus
55
filename: nginx-plus
66
update_cache: no
77
state: "{{ nginx_license_status | default ('present') }}"

tasks/unit/setup-debian.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
apt_repository:
44
repo: "{{ item }}"
55
with_items:
6-
- deb https://packages.nginx.org/unit/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release }} unit
7-
- deb-src https://packages.nginx.org/unit/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release }} unit
6+
- deb [arch=amd64] https://packages.nginx.org/unit/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release }} unit
7+
- deb-src [arch=amd64] https://packages.nginx.org/unit/{{ ansible_distribution|lower }}/ {{ ansible_distribution_release }} unit

0 commit comments

Comments
 (0)