fix: wrong interface variable call
This commit is contained in:
parent
22a60b42d4
commit
ee7cd0c12e
@ -4,13 +4,19 @@
|
|||||||
vars:
|
vars:
|
||||||
# certbot_force: true
|
# certbot_force: true
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
|
- name: Install Pg vertors (immich)
|
||||||
|
ansible.builtin.aur:
|
||||||
|
name: pgvecto.rs-bin
|
||||||
|
state: present
|
||||||
|
become: true
|
||||||
|
become_user: aur_builder
|
||||||
- name: Add database member to pg_hba replication
|
- name: Add database member to pg_hba replication
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
postgresql_hba_entries: "{{ postgresql_hba_entries + [\
|
postgresql_hba_entries: "{{ postgresql_hba_entries + [\
|
||||||
{'type':'host', \
|
{'type':'host', \
|
||||||
'database': 'replication',\
|
'database': 'replication',\
|
||||||
'user':'repli',\
|
'user':'repli',\
|
||||||
'address':hostvars[item]['ansible_'+default_interface]['ipv4']['address']+'/32',\
|
'address':hostvars[item]['ansible_'+hostvars[item]['default_interface']]['ipv4']['address']+'/32',\
|
||||||
'auth_method':'trust'}] }}"
|
'auth_method':'trust'}] }}"
|
||||||
loop: '{{ groups.database }}'
|
loop: '{{ groups.database }}'
|
||||||
roles:
|
roles:
|
||||||
@ -30,11 +36,7 @@
|
|||||||
state: '{{ postgresql_service_state }}'
|
state: '{{ postgresql_service_state }}'
|
||||||
enabled: '{{ postgresql_service_enabled }}'
|
enabled: '{{ postgresql_service_enabled }}'
|
||||||
become: true
|
become: true
|
||||||
- name: Install pg_vector.rs
|
|
||||||
aur:
|
|
||||||
name: pgvecto.rs-bin
|
|
||||||
become: true
|
|
||||||
become_user: aur_builder
|
|
||||||
- name: Set Postgress shared libraries
|
- name: Set Postgress shared libraries
|
||||||
community.postgresql.postgresql_set:
|
community.postgresql.postgresql_set:
|
||||||
name: shared_preload_libraries
|
name: shared_preload_libraries
|
||||||
|
Loading…
Reference in New Issue
Block a user