Skip to content

Commit

Permalink
Merge pull request #8 from ansible-actions/DO1JLR-patch-1
Browse files Browse the repository at this point in the history
improve updating ansible roles
  • Loading branch information
DO1JLR authored Oct 21, 2023
2 parents 1ed99d3 + 20a49b3 commit ec08106
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ inputs:
collections_yml:
description: |
Install multiple Collections, defined from requirements.yml file
They will be installed using ansible-galaxy collection install -r <YourInput> --upgrade.
They will be installed using ansible-galaxy collection install -r <YourInput> --force.
required: false
required_roles:
description: |
You can define a required ansible role here.
They will be installed using ansible-galaxy role install <YourInput> --upgrade.
They will be installed using ansible-galaxy role install <YourInput> --force.
required: false
python_dependency:
description: |
Expand Down
2 changes: 1 addition & 1 deletion ansible_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def run_command(self, command):

# Optionally install required ansible roles
if bool(reqired_role):
role_install_command = ["ansible-galaxy", "role", "install", f"{reqired_role}", "--upgrade"]
role_install_command = ["ansible-galaxy", "role", "install", f"{reqired_role}", "--force"]
role_install_info = execute.run_command(role_install_command)
print(f"{role_install_info}\nSINGLE ROLE INSTALL SUCCESSFUL")

Expand Down

0 comments on commit ec08106

Please sign in to comment.