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

Commit c4dafc7

Browse files
authored
Merge pull request #1564 from oxyc/shellwords
Use shellwords hack to allow spaces in DRUPALVM_ANSIBLE_ARGS
2 parents 8617fe1 + 73da90a commit c4dafc7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Vagrantfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Vagrant.configure('2') do |config|
108108
config_dir: config_dir,
109109
drupalvm_env: drupalvm_env
110110
}
111-
ansible.raw_arguments = ENV['DRUPALVM_ANSIBLE_ARGS']
111+
ansible.raw_arguments = Shellwords.shellsplit(ENV['DRUPALVM_ANSIBLE_ARGS']) if ENV['DRUPALVM_ANSIBLE_ARGS']
112112
ansible.tags = ENV['DRUPALVM_ANSIBLE_TAGS']
113113
# Use pip to get the latest Ansible version when using ansible_local.
114114
provisioner == :ansible_local && ansible.install_mode = 'pip'

docs/extending/ansible-args.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ DRUPALVM_ANSIBLE_ARGS='--verbose' vagrant provision
2828
Begin the provisioning at a particular task:
2929

3030
```sh
31-
DRUPALVM_ANSIBLE_ARGS='--start-at-task=*post-provision shell*' vagrant provision
31+
DRUPALVM_ANSIBLE_ARGS="--start-at-task '*post-provision shell*'" vagrant provision
3232
```
3333

3434
Override a config variable:
3535

3636
```sh
37-
DRUPALVM_ANSIBLE_ARGS='--extra-vars=drupal_db_backend=pgsql' vagrant provision
37+
DRUPALVM_ANSIBLE_ARGS='--extra-vars "drupal_db_backend=pgsql"' vagrant provision
3838
```

0 commit comments

Comments
 (0)