Skip to content

Commit

Permalink
pull packages directly from tinternet
Browse files Browse the repository at this point in the history
  • Loading branch information
fredex42 committed Jun 28, 2023
1 parent 33fd129 commit ac8363e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
1 change: 1 addition & 0 deletions roles/kong/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ kong_version: 1.5.1
kong_user: content-api
postgres_version: 12
kong_arch: amd64
kong_repo: gateway-3.x-ubuntu-focal
11 changes: 2 additions & 9 deletions roles/kong/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,10 @@
- postgresql-client-{{postgres_version}}
state: latest

- name: Download Kong package
amazon.aws.aws_s3:
bucket: amigo-data
mode: get
object: "packages/kong_{{ kong_version }}_{{ kong_arch }}.deb"
dest: "/tmp/kong_{{ kong_version }}_{{ kong_arch }}.deb"
register: getresult

- name: Install Kong package
apt:
deb: "/tmp/kong_{{ kong_version }}_{{ kong_arch }}.deb"
deb: https://download.konghq.com/{{ kong_repo }}/pool/all/k/kong/kong_{{ kong_version }}_{{ kong_arch }}.deb
state: present

- name: Create user for Kong
user: name={{kong_user}} system=yes
Expand Down

0 comments on commit ac8363e

Please sign in to comment.