Skip to content

Commit

Permalink
Merge pull request #46 from arillso/feature/add-galaxy-force-bool-var…
Browse files Browse the repository at this point in the history
…iable

feat(variable): Add 'GalaxyForce' booleant
  • Loading branch information
sbaerlocher authored Nov 9, 2023
2 parents 64c8b3a + 928eef4 commit 484df6a
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"avatar_url": "https://avatars1.githubusercontent.com/u/4160387?v=4",
"profile": "https://sbaerlocher.ch",
"contributions": [
"code",
"code",
"ideas"
]
}
Expand Down
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Top-most EditorConfig file
root = true

# Default settings for all files
[*]
charset = utf-8 # Set the character encoding to UTF-8
end_of_line = lf # Use Line Feed for new lines
indent_size = 4 # Set the indent size to 4 spaces
indent_style = space # Use spaces for indentation
insert_final_newline = true # Ensure file ends with a newline
trim_trailing_whitespace = true # Remove any whitespace at the end of a line
[{Makefile,go.mod,go.sum,*.go,.gitmodules}]
indent_style = tab
indent_size = 4

[*.md]
indent_size = 4
trim_trailing_whitespace = false

eclint_indent_style = unset
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ and [human-readable changelog](https://keepachangelog.com/en/1.0.0/).

## master

## 0.0.8

### Changed

- feat(variable): Add 'GalaxyForce' booleant

## 0.0.7

### Changed
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module github.com/sbaerlocher/go-test
module github.com/arillso/action.playbook

go 1.18

require (
github.com/arillso/go.ansible v0.0.2
github.com/arillso/go.ansible v0.0.4
github.com/joho/godotenv v1.5.1
github.com/urfave/cli/v2 v2.25.7
)
Expand Down
9 changes: 2 additions & 7 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
github.com/BurntSushi/toml v1.3.2/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
github.com/arillso/go.ansible v0.0.2 h1:q7eyYvSEYClXE5/dYNntF38TmuGAn2y2tfToFnpjLK0=
github.com/arillso/go.ansible v0.0.2/go.mod h1:fQ/pnEpbx8qb6TGoleujEYHOEtbw1d36g8MV/rdK0WM=
github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w=
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/arillso/go.ansible v0.0.4 h1:NG20Pohtejs7xyTJeAAmWJUXirsk67BLRYE5IvXaUBY=
github.com/arillso/go.ansible v0.0.4/go.mod h1:4xsAZCWUsdoLtOnA4BLoqd+vLD82qqqCZTxDm+c1oP8=
github.com/cpuguy83/go-md2man/v2 v2.0.3 h1:qMCsGGgs+MAzDFyp9LpAe1Lqy/fY/qCovCm0qnXZOBM=
github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
Expand All @@ -15,5 +12,3 @@ github.com/urfave/cli/v2 v2.25.7 h1:VAzn5oq403l5pHjc4OhD54+XGO9cdKVL/7lDjF+iKUs=
github.com/urfave/cli/v2 v2.25.7/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ=
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU=
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ func main() {
Usage: "path to galaxy requirements",
EnvVars: []string{"ANSIBLE_GALAXY_FILE", "INPUT_GALAXY_FILE", "PLUGIN_GALAXY_FILE"},
},
&cli.StringFlag{
Name: "galaxy-force",
Usage: "galaxy force",
EnvVars: []string{"ANSIBLE_GALAXY_FORCE", "INPUT_GALAXY_FORCE", "PLUGIN_GALAXY_FORCE"},
},
&cli.StringSliceFlag{
Name: "inventory,i",
Usage: "specify inventory host path",
Expand Down Expand Up @@ -206,6 +211,7 @@ func run(c *cli.Context) error {
playbook := &ansible.AnsiblePlaybook{
Config: ansible.Config{
GalaxyFile: c.String("galaxy-file"),
GalaxyForce: c.Bool("galaxy-force"),
Inventories: c.StringSlice("inventory"),
Playbooks: c.StringSlice("playbook"),
Limit: c.String("limit"),
Expand Down

0 comments on commit 484df6a

Please sign in to comment.