Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

I can't provision, I get an error in "TASK: [Configure host machine drush aliases.]" #114

Closed
jclopez opened this issue May 29, 2015 · 8 comments
Labels

Comments

@jclopez
Copy link

jclopez commented May 29, 2015

When I run provision i got this error:
Ansible version: 1.8.2
Vagrant version: 1.7.2
Mac OSX: 10.10.3

TASK: [Configure host machine drush aliases.] ********************************* 
failed: [drupaldev -> 127.0.0.1] => {"failed": true}
msg: Destination directory /Users/username/.drush does not exist

FATAL: all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
           to retry, use: --limit @/Users/username/playbook.retry

drupaldev                  : ok=155  changed=9    unreachable=0    failed=1   

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

Does anyone have an idea what could be wrong?

@geerlingguy
Copy link
Owner

@jclopez - It seems your ~ alias might not be configured correctly. What is the output of the command echo ~ (if you enter it in your Terminal)?

It should point to, in your case, /Users/jclopez or something like that. Maybe something you have running that's taking over your .profile or .bash_profile is messing with the ~ path?

@jclopez
Copy link
Author

jclopez commented May 29, 2015

problably is that Im running fish

 ~/Projects/drupal · (master±)
  ⟩ echo ~ 
  /Users/jclopez

@jclopez
Copy link
Author

jclopez commented May 29, 2015

Same error running Vagrant provision without fish

@jclopez
Copy link
Author

jclopez commented May 29, 2015

should I have to install drush on the host?

@geerlingguy
Copy link
Owner

Ah... I just realized the task prior to the one that was failing wasn't configured correctly. The above commit should hopefully fix this—can you update your clone to the latest revision and run vagrant provision again to see if it gets past that command?

@geerlingguy
Copy link
Owner

And no, you don't need to have Drush installed on the host (though that's usually more convenient than having to remain logged into the guest to run drush commands, in my experience).

@jclopez
Copy link
Author

jclopez commented May 29, 2015

It worked like a champ with the latest commit.
Thanks and for the advice on Drush

@jclopez jclopez closed this as completed May 29, 2015
@geerlingguy
Copy link
Owner

Awesome, glad I could help, and thanks for posting an issue!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants