Skip to content

Commit

Permalink
Add convenience package vardef export (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyphreak authored Apr 7, 2024
1 parent 6d71615 commit c825086
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tasks/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

- name: Set global facts
ansible.builtin.set_fact:
_postgresql_package_server: "{{ postgresql_package_server | default(_default_package_server) }}"
_postgresql_package_client: "{{ postgresql_package_client | default(_default_package_server) }}"
_postgresql_package_all: "{{ _package_server + _package_client}}"

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (hold, ubuntu2204, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (hold, ubuntu2004, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (stop, debian12, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (initdb, ubuntu2004, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (initdb, debian11, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (hold, debian12, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (mask, ubuntu2204, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (initdb, ubuntu2204, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (configure, debian12, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (deploy, debian12, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (deploy, ubuntu2204, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (stop, rockylinux9, /usr/lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (mask, debian11, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (initdb, debian12, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (configure, debian11, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (deploy, debian11, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (hold, debian11, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (mask, debian12, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (stop, ubuntu2004, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (databases, debian11, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (databases, ubuntu2204, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (initdb, rockylinux9, /usr/lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (mask, ubuntu2004, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (deploy, ubuntu2004, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (stop, debian11, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (hold, rockylinux9, /usr/lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (configure, ubuntu2204, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (stop, ubuntu2204, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (mask, rockylinux9, /usr/lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (databases, debian12, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (databases, ubuntu2004, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (configure, rockylinux9, /usr/lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (configure, ubuntu2004, /lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (databases, rockylinux9, /usr/lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}

Check warning on line 7 in tasks/vars.yml

View workflow job for this annotation

GitHub Actions / molecule (deploy, rockylinux9, /usr/lib/systemd/systemd)

jinja[spacing]

Jinja2 spacing could be improved: {{ _package_server + _package_client}} -> {{ _package_server + _package_client }}
_postgresql_package_server: "{{ _package_server }}"
_postgresql_package_client: "{{ _package_client }}"
_postgresql_package_extra: "{{ postgresql_package_extra | default(_default_package_extra) }}"
_postgresql_service_name: "{{ postgresql_service_name | default(_default_service) }}"
_postgresql_user: "{{ postgresql_user }}"
Expand Down Expand Up @@ -37,6 +38,8 @@
_default_package_client: "{{ __postgresql_package_client | nephelaiio.plugins.sorted_get(_conf_search) }}"
_default_package_extra: "{{ __postgresql_package_extra | nephelaiio.plugins.sorted_get(_conf_search) }}"
_default_service: "{{ __postgresql_service_name | nephelaiio.plugins.sorted_get(_conf_search) }}"
_package_server: "{{ postgresql_package_server | default(_default_package_server) }}"
_package_client: "{{ postgresql_package_client | default(_default_package_server) }}"
_conf_confdir: "{{ __postgresql_conf_dir }}"
_conf_datadir: "{{ __postgresql_datadir | nephelaiio.plugins.sorted_get(_conf_search) }}"
_conf_bindir: "{{ __postgresql_bindir | nephelaiio.plugins.sorted_get(_conf_search) }}"
Expand Down

0 comments on commit c825086

Please sign in to comment.