Closed sbubaron closed 8 years ago
That's odd. That task should only run if nodejs_install_npm_user
isn't defined. And you clearly have it defined.
Have you updated all the Drupal VM files, more specifically do you have provisioning/vars/main.yml
?
For debugging purposes, try setting nodejs_install_npm_user: vagrant
and see if that works.
Just stepped out, will check when I get back, but yes I downloaded entire package. I'll also try your user suggestion.
FYI Slight modification to vagrantfile to keep the root of my Drupal project cleaner. Vagrantfile lives in project root, but all config lives in a drupalvm folder dir variable adjusted accordingly.
Thanks for the speedy response yet again!
Rich On May 13, 2016 10:31 PM, "Oskar Schöldström" notifications@github.com wrote:
For debugging purposes, try setting nodejs_install_npm_user: vagrant and see if that works.
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/geerlingguy/drupal-vm/issues/622#issuecomment-219198100
I don't see how a modified Vagrantfile could break the provisioning in this particular location. If something was wrong it should have failed earlier already.
In version 3.0 Drupal VM will most likely support your scenario better btw :) There's a PR which allows you to have Drupal VM in a subdirectory while storing your config files outside of it #378.
switched to "vagrant" still getting error: config.yml snippet of what was changed, full file above
# `nodejs` must be in installed_extras for this to work.
nodejs_version: "0.12"
#nodejs_install_npm_user: "{{ drupalvm_user }}"
nodejs_install_npm_user: vagrant
nodejs_npm_global_packages:
- name: gulp```
==> asasbu.localvm: TASK [geerlingguy.nodejs : include] ****
==> asasbu.localvm: skipping: [localhost]
==> asasbu.localvm:
==> asasbu.localvm: TASK [geerlingguy.nodejs : include] ****
==> asasbu.localvm: included: /etc/ansible/roles/geerlingguy.nodejs/tasks/setup-Debian.yml for localhost
==> asasbu.localvm:
==> asasbu.localvm: TASK [geerlingguy.nodejs : Add Nodesource apt key.] ****
==> asasbu.localvm: changed: [localhost]
==> asasbu.localvm:
==> asasbu.localvm: TASK [geerlingguy.nodejs : Add NodeSource repositories for Node.js.] *
==> asasbu.localvm: changed: [localhost] => (item=deb https://deb.nodesource.com/node_0.12 trusty main)
==> asasbu.localvm: changed: [localhost] => (item=deb-src https://deb.nodesource.com/node_0.12 trusty main)
==> asasbu.localvm:
==> asasbu.localvm: TASK [geerlingguy.nodejs : Ensure Node.js and npm are installed.] **
==> asasbu.localvm: changed: [localhost]
==> asasbu.localvm:
==> asasbu.localvm: TASK [geerlingguy.nodejs : Define nodejs_install_npm_user] ***
==> asasbu.localvm: fatal: [localhost]: FAILED! => {"failed": true, "msg": "'ansible_ssh_user' is undefined"}
==> asasbu.localvm:
==> asasbu.localvm: NO MORE HOSTS LEFT *
==> asasbu.localvm:
==> asasbu.localvm: RUNNING HANDLER [geerlingguy.firewall : restart firewall] **
==> asasbu.localvm:
==> asasbu.localvm: RUNNING HANDLER [geerlingguy.apache : restart apache] **
==> asasbu.localvm:
==> asasbu.localvm: RUNNING HANDLER [geerlingguy.mysql : restart mysql] ****
==> asasbu.localvm:
==> asasbu.localvm: RUNNING HANDLER [geerlingguy.php : restart webserver] **
==> asasbu.localvm:
==> asasbu.localvm: RUNNING HANDLER [geerlingguy.php : restart php-fpm] ****
==> asasbu.localvm: to retry, use: --limit @/vagrant//drupalvm-251/provisioning/playbook.retry
==> asasbu.localvm:
==> asasbu.localvm: PLAY RECAP *****
==> asasbu.localvm: localhost : ok=144 changed=66 unreachable=0 failed=1
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
provisioning\vars\main.yml exists
_devtool_docroots:
drupalvm_user: "{{ ansible_ssh_user | default(ansible_env.SUDO_USER, true) | default(ansible_env.USER, true) | default(ansible_user_id) }}"
ah jeez, I was doing something silly, config file I was editing was actually being saved in wrong place. Sorry for wasting your time.
the vm has now booted. will try windows on Monday.
thanks for your help!
No worries, glad you got it working!
I am working on upgrading to v2.51
Received the below error, I found this related issue https://github.com/geerlingguy/drupal-vm/issues/602 but I am already / have been on 14.04. Ansible --version is reporting 2.02 inside the vm. Ansible is not installed locally on my mac. Vagrant has been upgraded to 1.8.1
config.yml:
Thanks everyone!