Repository navigation
chore(github actions): use refactored workflows #9
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
Changes from all commits
ebaca53
89a69ea
40d6685
a51f0c6
8979869
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,10 @@ | ||||||
| --- | ||||||
| name: CI | ||||||
| on: | ||||||
| push: | ||||||
| workflow_dispatch: | ||||||
| jobs: | ||||||
| ansible-role: | ||||||
| uses: punktDe/shared-workflows/.github/workflows/ansible-role.yml@main | ||||||
|
||||||
| uses: punktDe/shared-workflows/.github/workflows/ansible-role.yml@main | |
| uses: punktDe/shared-workflows/.github/workflows/ansible-role.yml@<PINNED_TAG_OR_SHA> |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -19,81 +19,24 @@ argument_specs: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type: "str" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - Directory for PostgreSQL configuration (e.g. pg_hba.conf, postgresql.conf include). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - Defaults depend on system; see defaults/main.yaml (e.g. /etc/postgresql/{{ version }}/main/conf.d on Linux). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - Defaults depend on system; see defaults/main.yaml (e.g. /etc/postgresql/{{ postgresql.version }}/main/conf.d on Linux). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| users: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type: "dict" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| default: {} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - Dict of PostgreSQL users to create (key is an arbitrary id, value defines the user). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| options: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| username: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type: "str" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description: Login name of the user. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| password: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type: "str" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description: Password for the user (optional). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| role_attributes: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type: "dict" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description: Role attributes (e.g. SUPERUSER, CREATEROLE); values are joined for role_attr_flags. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| hosts: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| type: "list" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| elements: "str" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| description: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - List of client addresses (e.g. 127.0.0.1) for which a pg_hba.conf host entry is added. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - Used together with privileges to allow password authentication from those hosts. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - "Values should contain: username (str), password (str, optional), role_attributes (dict, optional), hosts (list, optional)." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| - "Values should contain: username (str), password (str, optional), role_attributes (dict, optional), hosts (list, optional)." | |
| options: | |
| username: | |
| type: "str" | |
| description: | |
| - Name of the PostgreSQL role/user to create. | |
| password: | |
| type: "str" | |
| description: | |
| - Password for the user (optional; if omitted, passwordless or external auth may be used). | |
| role_attributes: | |
| type: "dict" | |
| description: | |
| - Additional role attributes for the user (optional; mapping of attribute names to values). | |
| hosts: | |
| type: "list" | |
| elements: "str" | |
| description: | |
| - List of hosts for which this user should be allowed to connect (optional). |
Copilot
AI
Feb 16, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
postgresql.privileges no longer defines nested options in the role argument spec and instead embeds the expected fields in a single description string. If you rely on structured argument spec docs/validation, restore the options block so individual fields (database/type/objs/schema/privs, etc.) are discoverable and type-checked.
| - "Values should contain: username (str), database (str), type (str, default: table), objs (str, optional), schema (str, optional), privs (list)." | |
| options: | |
| username: | |
| type: "str" | |
| description: PostgreSQL role (user) to grant privileges to. | |
| database: | |
| type: "str" | |
| description: Database on which to grant the privileges. | |
| type: | |
| type: "str" | |
| default: table | |
| description: Object type to grant privileges on (e.g. table). | |
| objs: | |
| type: "str" | |
| description: Name or pattern of objects to which privileges apply (optional). | |
| schema: | |
| type: "str" | |
| description: Schema containing the objects (optional). | |
| privs: | |
| type: "list" | |
| elements: "str" | |
| description: List of privileges to grant (e.g. SELECT, INSERT). |
Copilot
AI
Feb 16, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
postgresql.databases no longer defines nested options in the role argument spec and instead documents the expected keys in free-text. This reduces generated docs fidelity and prevents schema-aware validation; consider restoring the structured options block if that detail is still desired.
| - "Values should contain: name (str), owner (str), encoding (str, optional), lc_collate (str, optional), lc_ctype (str, optional), template (str, optional), import_file (path, optional)." | |
| options: | |
| name: | |
| type: "str" | |
| required: true | |
| description: Name of the PostgreSQL database to create. | |
| owner: | |
| type: "str" | |
| required: true | |
| description: PostgreSQL role that will own the database. | |
| encoding: | |
| type: "str" | |
| required: false | |
| description: Encoding for the database (e.g. UTF-8). If omitted, database_defaults.encoding is used. | |
| lc_collate: | |
| type: "str" | |
| required: false | |
| description: Locale for string sort order. If omitted, database_defaults.lc_collate is used. | |
| lc_ctype: | |
| type: "str" | |
| required: false | |
| description: Locale for character classification. If omitted, database_defaults.lc_ctype is used. | |
| template: | |
| type: "str" | |
| required: false | |
| description: Template database to copy when creating the database. If omitted, database_defaults.template is used. | |
| import_file: | |
| type: "path" | |
| required: false | |
| description: Path to an SQL file to import into the database after creation. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| ansible>12.0.0 | ||
| ansible-lint | ||
| docker | ||
| molecule<25.2.0 | ||
| molecule | ||
| molecule-plugins | ||
| yamllint | ||
| requests | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The previous CI defined explicit linting + a Molecule OS matrix in-repo; this workflow delegates everything to the shared workflow without showing what runs here. If the shared workflow doesn’t include the same lint/molecule coverage (and OS matrix), this change reduces CI signal for this role; consider documenting/encoding the required checks via inputs or an explicit matrix in this repo.