Skip to content

Commit

Permalink
Merge pull request #7 from ansible-actions/collections
Browse files Browse the repository at this point in the history
improve install collections from file
  • Loading branch information
DO1JLR authored Oct 20, 2023
2 parents 12b0558 + e606080 commit 1ed99d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
fetch-depth: 0

- name: Run ansible-lint
uses: ansible-actions/[email protected].0
uses: ansible-actions/[email protected].1
with:
target: "./"
```
Expand Down
4 changes: 2 additions & 2 deletions ansible_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ def run_command(self, command):

# Optionally install required ansible collections from yml file
if bool(reqired_collection_yml):
collections_install_command = ["ansible-galaxy", "collection", "install", "-r",
f"{reqired_collection_yml}", "--upgrade"]
collections_install_command = ["ansible-galaxy", "install", "--role-file",
f"{reqired_collection_yml}", "--force"]
collections_install_info = execute.run_command(collections_install_command)
print(f"{collections_install_info}\nCOLLECTION.YML INSTALL SUCCESSFUL")

Expand Down

0 comments on commit 1ed99d3

Please sign in to comment.