Correct underscore replacement
This commit is contained in:
parent
972ddfc816
commit
11aa71e827
1 changed files with 6 additions and 2 deletions
|
@ -7,9 +7,13 @@
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
become: false
|
become: false
|
||||||
|
|
||||||
|
- name: remove underscores from folder name
|
||||||
|
set_fact:
|
||||||
|
proj_root_safe: "{{ proj_root.stdout|basename|replace('_','-') }}"
|
||||||
|
|
||||||
# These values are NOT honored by Vagrant, but are still necessary for DrupalVM
|
# These values are NOT honored by Vagrant, but are still necessary for DrupalVM
|
||||||
# See also provisioning/box/config
|
# See also provisioning/box/config
|
||||||
- name: set vagrant hostname according to the project folder
|
- name: set vagrant hostname according to the project folder
|
||||||
set_fact:
|
set_fact:
|
||||||
vagrant_hostname: "{{ proj_root.stdout|replace("_", "-")|basename }}.local"
|
vagrant_hostname: "{{ proj_root_safe }}.local"
|
||||||
vagrant_machine_name: "{{ proj_root.stdout|replace("_", "-")|basename }}-coop-vm"
|
vagrant_machine_name: "{{ proj_root_safe }}-coop-vm"
|
||||||
|
|
Loading…
Reference in a new issue