Skip to content

Commit 1ed99d3

Browse files
authored
Merge pull request #7 from ansible-actions/collections
improve install collections from file
2 parents 12b0558 + e606080 commit 1ed99d3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
fetch-depth: 0
2929

3030
- name: Run ansible-lint
31-
uses: ansible-actions/[email protected].0
31+
uses: ansible-actions/[email protected].1
3232
with:
3333
target: "./"
3434
```

ansible_docker.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ def run_command(self, command):
102102

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

0 commit comments

Comments
 (0)