1
0
Fork 0
mirror of https://github.com/geerlingguy/ansible-role-postgresql.git synced 2025-06-02 18:51:59 -04:00
postgresql/tasks/setup-Archlinux.yml

21 lines
591 B
YAML

---
- name: Ensure PostgreSQL Python libraries are installed.
pacman:
name: "{{ postgresql_python_library }}"
state: present
- name: Ensure PostgreSQL packages are installed.
pacman:
name: "{{ postgresql_packages }}"
state: present
- name: Ensure all configured locales are present.
locale_gen: "name={{ item }} state=present"
with_items: "{{ postgresql_locales }}"
register: locale_gen_result
- name: Force-restart PostgreSQL after new locales are generated.
systemd:
name: "{{ postgresql_daemon }}"
state: restarted
when: locale_gen_result.changed