sync roles with changes from OWS
This commit is contained in:
@@ -1,4 +1,15 @@
|
||||
---
|
||||
|
||||
- name: Set architecture alias
|
||||
set_fact:
|
||||
architecture_alias: "amd64" # noqa: var-naming[no-role-prefix]
|
||||
when: ansible_architecture == "x86_64"
|
||||
|
||||
- name: Set architecture alias
|
||||
set_fact:
|
||||
architecture_alias: "arm64" # noqa: var-naming[no-role-prefix]
|
||||
when: ansible_architecture == "aarch64"
|
||||
|
||||
- name: Add PostgreSQL GPG apt key
|
||||
apt_key:
|
||||
url: https://www.postgresql.org/media/keys/ACCC4CF8.asc
|
||||
@@ -7,7 +18,7 @@
|
||||
|
||||
- name: Add PostgreSQL Repository
|
||||
apt_repository:
|
||||
repo: "deb [arch={{ deb_architecture }} signed-by=/usr/share/keyrings/apt.postgresql.org.gpg] \
|
||||
repo: "deb [arch={{ architecture_alias }} signed-by=/usr/share/keyrings/apt.postgresql.org.gpg] \
|
||||
http://apt.postgresql.org/pub/repos/apt {{ ansible_distribution_release }}-pgdg main"
|
||||
state: present
|
||||
update_cache: true
|
||||
@@ -46,5 +57,5 @@
|
||||
rules_behavior: combine
|
||||
contype: host
|
||||
# custom rules
|
||||
rules: "{{ pgsql_client_auth }}"
|
||||
rules: "{{ pgsql_client_auth }}" # noqa: args
|
||||
notify: Reload postgresql
|
||||
|
||||
Reference in New Issue
Block a user