How do I change drupal_core_path to /public instead of /web? I use Drupal VM and I have to change the folder from {{ drupal_composer_install_dir }}/web to {{ drupal_composer_install_dir }}/public.

When I do it and I run vagrant up, I get this error.


  An exception occurred during task execution. To see the full traceback, use -vvv.
  The error was: OSError: [Errno 2] No such file or directory: '/var/www/jb-inflatables/public'
  fatal: [jb-inflatables]: FAILED! => {"changed": false, "failed_when_result": true, "module_stderr": "Traceback (most recent call last):
  File \"/home/vagrant/.ansible/tmp/ansible-tmp-1560461183.6-73909259621121/AnsiballZ_command.py\", line 114, in &lt;module&gt;
  _ansiballz_main()
  File "/home/vagrant/.ansible/tmp/ansible-tmp-1560461183.6-73909259621121/AnsiballZ_command.py", line 106, in _ansiballz_main
  invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
  File "/home/vagrant/.ansible/tmp/ansible-tmp-1560461183.6-73909259621121/AnsiballZ_command.py\", line 49, in invoke_module
  imp.load_module('main', mod, module, MOD_DESC)
  File "/tmp/ansible_command_payload_KaNSZF/main.py", line 327, in
  &lt;module&gt;
  File "/tmp/ansible_command_payload_KaNSZF/main.py", line 263, in main
  OSError: [Errno 2] No such file or directory: '/var/www/jb-inflatables/public', "module_stdout": "", "msg": "MODULE FAILURE See stdout/stderr for the exact error", "rc": 1


How do I have to change the config.yml file so that Drupal is installed in /public instead of /web?
You should be able to create a symbolic link to web called public.
ln -s web public
Your server will find the contents of web/ inside of public/ and vagrant will find what it needs in web.