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

Undefined variable error using example config.yml with nginx #251

Closed
peterlavelle opened this issue Sep 22, 2015 · 2 comments
Closed

Undefined variable error using example config.yml with nginx #251

peterlavelle opened this issue Sep 22, 2015 · 2 comments
Labels

Comments

@peterlavelle
Copy link

When adminer is enabled, I'm getting the following error when provisioning nginx vhosts

config.yml is much the same as the example provided, apart from the changes below:

plavelle@xps:~/drupal-vm$ diff example.config.yml config.yml
34c34
< drupalvm_webserver: apache

---
> drupalvm_webserver: nginx
47c47
< drupal_major_version: 8

---
> drupal_major_version: 7

TASK: [geerlingguy.adminer | Set the proper Apache configuration directory (Debian).] ***
fatal: [drupalvm] => One or more undefined variables: 'apache_vhosts_version' is undefined

FATAL: all hosts have already failed -- aborting

@geerlingguy
Copy link
Owner

@peterlavelle - To fix this, you'll need to set adminer_add_apache_config: false (it's currently set to true in the default config, I need to fix the config for it though).

@geerlingguy
Copy link
Owner

Apparently the GitHub 'Fixes' detection has changed... because I keep having to manually close these issues. Basically, I've fixed the Adminer role to allow setting of the Adminer filename, so please update your Ansible roles locally (with sudo ansible-galaxy install -r provisioning/requirements.txt --force), then make sure you update based on the changes in the example config.

This works better, imo, because now Adminer can be accessed at adminer.drupalvm.dev :)

ravbaba pushed a commit to ravbaba/drupal-vm that referenced this issue Sep 23, 2015
ravbaba pushed a commit to ravbaba/drupal-vm that referenced this issue Sep 23, 2015
ravbaba pushed a commit to ravbaba/drupal-vm that referenced this issue Sep 23, 2015
ravbaba pushed a commit to ravbaba/drupal-vm that referenced this issue Sep 23, 2015
ravbaba pushed a commit to ravbaba/drupal-vm that referenced this issue Sep 23, 2015
ravbaba pushed a commit to ravbaba/drupal-vm that referenced this issue Sep 23, 2015
joestewart pushed a commit to joestewart/drupal-vm that referenced this issue Jun 27, 2016
joestewart pushed a commit to joestewart/drupal-vm that referenced this issue Jun 27, 2016
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