Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load Arch Linux variables #262

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tasks/variables.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
---
# Variable configuration.

- name: Include OS-specific variables (Arch)
include_vars: Arch.yml
when: ansible_os_family == 'Archlinux'

- name: Include OS-specific variables (Debian).
include_vars: "{{ ansible_distribution }}-{{ ansible_distribution_version.split('.')[0] }}.yml"
when: ansible_os_family == 'Debian'
Expand Down Expand Up @@ -59,7 +64,7 @@
set_fact:
# postgresql_global_config_options is an array but its keys are unique, so it can be converted to dict,
# to easily get the value under the 'log_directory' key
postgresql_log_dir: "{{ (postgresql_global_config_options | items2dict(key_name='option', value_name='value')).log_directory }}"

Check warning on line 67 in tasks/variables.yml

View workflow job for this annotation

GitHub Actions / Lint

67:121 [line-length] line too long (132 > 120 characters)

- name: Define postgresql_effective_log_dir, if postgresql_log_dir is absolute
set_fact:
Expand Down