Skip to content

Commit

Permalink
feat: Update inputs for Ansible Playbook action with new Galaxy options
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaerlocher committed Nov 11, 2023
1 parent 484df6a commit 27d83c8
Show file tree
Hide file tree
Showing 12 changed files with 453 additions and 216 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ indent_size = 4
trim_trailing_whitespace = false

eclint_indent_style = unset

[{*.yaml,*.yml}]
indent_size = 2 # Set the indent size to 2 spaces
52 changes: 26 additions & 26 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
version: 2
updates:
- package-ecosystem: gomod
directory: '/'
schedule:
interval: monthly
open-pull-requests-limit: 10
reviewers:
- sbaerlocher
assignees:
- sbaerlocher
commit-message:
prefix: fix
prefix-development: chore
include: scope
- package-ecosystem: gomod
directory: "/"
schedule:
interval: monthly
open-pull-requests-limit: 10
reviewers:
- sbaerlocher
assignees:
- sbaerlocher
commit-message:
prefix: fix
prefix-development: chore
include: scope

- package-ecosystem: docker
directory: '/'
schedule:
interval: monthly
open-pull-requests-limit: 10
reviewers:
- sbaerlocher
assignees:
- sbaerlocher
commit-message:
prefix: fix
prefix-development: chore
include: scope
- package-ecosystem: docker
directory: "/"
schedule:
interval: monthly
open-pull-requests-limit: 10
reviewers:
- sbaerlocher
assignees:
- sbaerlocher
commit-message:
prefix: fix
prefix-development: chore
include: scope
20 changes: 10 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ jobs:
test_go:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: 1.18.x
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: 1.18.x

- name: Checkout code
uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v2

# - name: Test
# run: go test ./...
# - name: Test
# run: go test ./...

- name: build
run: go build -o main
- name: build
run: go build -o main

test_docker:
runs-on: ubuntu-latest
Expand Down
54 changes: 30 additions & 24 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,59 +3,65 @@
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
and [human-readable changelog](https://keepachangelog.com/en/1.0.0/).

## master
## [Unreleased]

## 0.0.8
## [0.0.9] - 2023-11-11

### Changed

- feat(variable): Add 'GalaxyForce' booleant
- **Dependabot Configuration:** Improved formatting in `.github/dependabot.yml` for enhanced readability and consistency.
- **Changelog Formatting:** Updated the changelog format in `CHANGELOG.md` for better clarity and adherence to the human-readable standard.
- **Dependency Updates:** Modified versions in `go.mod` and `go.sum` to incorporate newer dependency versions.
- **`main.go` Adjustments:** Extensive revision of flag descriptions and comments to improve user-friendliness and comprehensibility.

## 0.0.7
## [0.0.8] - 2023-11-09

### Changed

- fix(deps): bump arillso/ansible from 2.15.4 to 2.15.5
- Add 'GalaxyForce' boolean variable.

## 0.0.6
## [0.0.7] - 2023-11-02

### Changed

- Bump go from 1.14 to 1.18
- fix(deps): bump arillso/ansible from 2.12.4 to 2.15.4
- fix(deps): bump github.com/arillso/go.ansible from 0.0.1 to 0.0.2
- fix(deps): bump github.com/joho/godotenv from 1.4.0 to 1.5.1
- fix(deps): bump github.com/urfave/cli/v2 from 2.11.1 to 2.25.7
- Bump arillso/ansible from 2.15.4 to 2.15.5.

## 0.0.5
## [0.0.6] - 2023-10-30

### Changed

- Bump arillso/ansible from 2.12.0 to 2.12.4
- Bump github.com/urfave/cli/v2 from 2.3.0 to 2.11.1
- Bump go from 1.14 to 1.18.
- Bump arillso/ansible from 2.12.4 to 2.15.4.
- Bump github.com/arillso/go.ansible from 0.0.1 to 0.0.2.
- Bump github.com/joho/godotenv from 1.4.0 to 1.5.1.
- Bump github.com/urfave/cli/v2 from 2.11.1 to 2.25.7.

## 0.0.4
## [0.0.5] - 2022-07-28

### Changed

- Bump arillso/ansible from 2.10.3 to 2.12.0
- Bump github.com/joho/godotenv from 1.3.0 to 1.4.0
- Bump github.com/urfave/cli/v2 from 2.2.0 to 2.3.0
- Bump github.com/urfave/cli/v2 from 2.3.0 to 2.11.1.

## 0.0.3
## [0.0.4] - 2021-11-28

### Changed

- Bump arillso/ansible from 2.9.7 to 2.9.9
- Bump arillso/ansible from 2.10.3 to 2.12.0.

## 0.0.2
## [0.0.3] - 2020-08-01

### Changed

- Bump arillso/ansible from 2.9.6 to 2.9.7
- Bump arillso/ansible from 2.9.7 to 2.9.9.

## 0.0.1
## [0.0.2] - 2020-05-02

### Changed

- Bump arillso/ansible from 2.9.6 to 2.9.7.

## [0.0.1] - 2020-04-06

### Added

- Initial Commit
- Initial Commit.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2020 Arillso
Copyright (c) 2023 Arillso

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
119 changes: 91 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,83 @@ Github Action for running Ansible Playbooks.

### galaxy_file

Name of the galaxy file in your workspace.
Specifies the path to the Ansible Galaxy requirements file.

### inventory
### galaxy_force

**Required** inventory
Forces the reinstallation of roles or collections from the Galaxy file.

Name of the inventory file in your workspace.
### galaxy_api_key

### playbook
Sets the API key used for authenticating to Ansible Galaxy.

### galaxy_api_server_url

Defines the URL of the Ansible Galaxy API server to interact with.

### galaxy_collections_path

Sets the path to the directory where Galaxy collections are stored.

### galaxy_disable_gpg_verify

Disables GPG signature verification for Ansible Galaxy operations.

### galaxy_force_with_deps

Forces the installation of collections with their dependencies from Galaxy.

### galaxy_ignore_certs

Ignores SSL certificate validation for Ansible Galaxy requests.

### galaxy_ignore_signature_status_codes

Lists HTTP status codes to ignore during Galaxy signature validation.

### galaxy_keyring

Specifies the path to the GPG keyring used with Ansible Galaxy.

### galaxy_offline

Enables offline mode, preventing any requests to Ansible Galaxy.

**Required** playbook
### galaxy_pre

Allows the installation of pre-release versions from Ansible Galaxy.

### galaxy_required_valid_signature_count

Sets the required number of valid GPG signatures for Galaxy content.

### galaxy_requirements_file

Defines the path to the Ansible Galaxy requirements file.

### galaxy_signature

Specifies a specific GPG signature to verify for Galaxy content.

### galaxy_timeout

Sets the timeout in seconds for Ansible Galaxy operations.

### galaxy_upgrade

Enables automatic upgrading of Galaxy collections to the latest version.

### galaxy_no_deps

Disables automatic resolution of dependencies in Ansible Galaxy.

### inventory

**Required.** Specifies one or more inventory host files for Ansible to use.

### playbook

Name of the playbook in your workspace.
**Required.** List of playbooks to apply.

### limit

Expand All @@ -38,27 +102,27 @@ Only run plays and tasks tagged with these values.

### extra_vars

Set additional variables as key=value.
Set additional variables in a key=value format for the playbook.

### module_path

Prepend paths to module library.
Prepends specified paths to the module library path list.

### check

Run a check, do not apply any changes.
Executes a dry run, showing what changes would be made without making them.

### diff

When changing (small) files and templates, show the differences in those files; works great with –check.
Shows the differences in files and templates when changing them.

### flush_cache

Clear the fact cache for every host in inventory.
Clears the fact cache for every host in the inventory.

### force_handlers

Run handlers even if a task fails.
Runs all handlers even if a task fails.

### list_hosts

Expand All @@ -74,15 +138,15 @@ List all tasks that would be executed.

### syntax_check

Perform a syntax check on the playbook.
Performs a syntax check on the playbook, without executing it.

### forks

Specify number of parallel processes to use.
Defines the number of parallel processes to use during playbook execution.

### vault_id

The vault identity to use.
Specifies the identity to use when accessing an Ansible Vault.

### vault_password

Expand All @@ -92,7 +156,7 @@ See [https://help.github.com/en/github/automating-your-workflow-with-github-acti

### verbose

Level of verbosity, 0 up to 4.
Sets the verbosity level, ranging from 0 (minimal output) to 4 (maximum verbosity).

### private_key

Expand All @@ -102,44 +166,43 @@ See [https://help.github.com/en/github/automating-your-workflow-with-github-acti

### user

Connect as this user.
Defines the username for making connections.

### connection

Connection type to use.
Sets the type of connection to use (e.g., SSH).

### timeout

Override the connection timeout in seconds.
Overrides the default connection timeout in seconds.

### ssh_common_args

Specify common arguments to pass to sftp/scp/ssh.
Specifies common arguments to pass to all SSH-based connection methods (SSH, SCP, SFTP).

### sftp_extra_args

Specify extra arguments to pass to sftp only.
Provides extra arguments to pass only to SFTP.

### scp_extra_args

Specify extra arguments to pass to scp only.
Provides extra arguments to pass only to SCP.

### ssh_extra_args

Specify extra arguments to pass to ssh only.
Provides extra arguments to pass only to SSH.

### become

Run operations with become.
Enables privilege escalation, allowing operations to run as another user.

### become_method

Privilege escalation method to use.
Specifies the method to use for privilege escalation (e.g., sudo).

### become_user

Run operations as this user.
required: false
Sets the user to impersonate when using privilege escalation.

## Example Usage

Expand Down
Loading

0 comments on commit 27d83c8

Please sign in to comment.