-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Drush 9 output values return as string rather than array when executed on Ansible with remote alias #3298
Comments
Nothing has deliberately changed. Perhaps run same commands manually with --verbose and verify exit codes - https://www.cyberciti.biz/faq/shell-how-to-determine-the-exit-status-of-linux-and-unix-command/ |
Thanks for the reply. That's what was confusing me, because executed manually (and in the output of the Ansible recap) was always "code: 0" |
I wonder if this is another instance of #3127 |
Yes, duplicate of #3127. Let's track there. |
Using Drush 9.0.0-rc2 and Ansible 2.4
I'm having an issue executing drush commands from a simple Ansible playbook, and I'm thinking that there is something about Drush 9 return codes that are causing a problem.
For example, below is a simple playbook to test executing on a remote alias from a local DrupalVM inventory. All drush commands when executed directly on the local box with the remote alias work as expected. Also, non-drush tasks when executed from the Ansible playbook work as expected. However, drush commands always fails (stopping the playbook execution) even though the command successfully executes on the remote box.
Example playbook:
This fails, returning the following to the Ansible recap, but the cache is sucessfully rebuilt on the remote :
It seems like something has changed with the exit status of drush commands in backend.inc??
The text was updated successfully, but these errors were encountered: