This commit is contained in:
ace 2023-02-10 14:34:38 +03:00
parent a2d5bd0cfb
commit 1dccd456c8
Signed by: ace
GPG Key ID: 2C08973DD37A76FD
2 changed files with 19 additions and 1 deletions

View File

@ -27,8 +27,10 @@
postgresql_installed_package: "{{ ansible_facts.packages[postgresql_package_name][0]['name'] }}" postgresql_installed_package: "{{ ansible_facts.packages[postgresql_package_name][0]['name'] }}"
when: postgresql_package_name in ansible_facts.packages when: postgresql_package_name in ansible_facts.packages
- debug: - name: Print installed PostgreSQL version
debug:
msg: "{{ ansible_facts.packages[postgresql_package_name][0]['version'] }}" msg: "{{ ansible_facts.packages[postgresql_package_name][0]['version'] }}"
verbosity: 2
when: postgresql_installed_package is defined when: postgresql_installed_package is defined
- name: Mask PostgreSQL before install - name: Mask PostgreSQL before install

View File

@ -12,6 +12,22 @@
- "vars" - "vars"
tags: postgresql_vars tags: postgresql_vars
- name: Load host variables to override role vars
include_vars:
dir: "{{ inventory_dir }}/host_vars"
ignore_unknown_extensions: True
extensions:
- ''
tags: postgresql_override_role_vars
- name: Load group variables to override role vars
include_vars:
dir: "{{ inventory_dir }}/group_vars"
extensions:
- "yaml"
- "yml"
tags: postgresql_override_role_vars
- name: "Set locale for PostgreSQL" - name: "Set locale for PostgreSQL"
include_tasks: locale.yaml include_tasks: locale.yaml
tags: postgresql_locale tags: postgresql_locale