-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add from until options to deploy.py #445
Conversation
ansible/deploy.py
Outdated
help="Determine from which playbook to start the deploy from", | ||
) | ||
@click.option( | ||
"--until", "until_playbook", help="Determine until which playbook to run the deploy" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is only one playbook but multiple roles. The text should be until which role
(same for the --from
option)
roles = roles[: roles.index(until_playbook) + 1] | ||
from_until = True | ||
|
||
final_roles = ",".join(roles) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you inline this variable? It is only used once at line 121
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after 2 minor comments, the issue was right, I am very happy now :)
ansible/deploy.py
Outdated
@@ -50,6 +65,8 @@ def deploy( | |||
env["ANSIBLE_STDOUT_CALLBACK"] = "yaml" | |||
env["ANSIBLE_VAULT_IDENTITY"] = host | |||
env["ANSIBLE_SSH_PIPELINING"] = "true" | |||
env["ANSIBLE_ROLES_PATH"] = "roles/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This actually breaks when not using WSL. Could you either remove these changes or somehow make a resilient check to only execute this statements when running inside of WSL?
Fixing and merging this PR because we want to have these changes for upcoming tasks |
Fixes issue #402