Use dynamic local_path to accommodate Ansible running on VM #725
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Here are the two changes Windows users face after #705 and this PR #725:
.vault_pass
executable problem will need to run Ansible commands from~/trellis
(Create /home/vagrant/trellis bindfs mount with proper permissions #705).local_path
(see https://discourse.roots.io/t/7825/7). They don't need to redefinelocal_path
nor do they need to move theVagrantfile
(Use dynamic local_path to accommodate Ansible running on VM #725).I'm not aware of any reason to NOT run Ansible commands from
~/trellis
, so we could potentially disable the default/vagrant
sync directory. That way we would just have a single option that works (~/trellis
), instead of two options, one of which doesn't work with.vault_pass
.Here is a verbose representation of what #705 and #725 did and didn't change for Windows users:
(
/vagrant
)#705
(
~/trellis
)#725
(this PR)
.vault_pass
(if running in
~/trellis
)(fixed in Ansible 2.0 ansible/ansible#11643)
local_path: ../site
works without movingVagrantfile
(dynamically changed)
local_path: /srv/www/example.com/current
(but unnecessary to redefine)
Vagrantfile
and run commands from/vagrant/trellis
(but not needed for
local_path
)Details on permissions of vagrant sync directories.
The final Setup C is the recommended setup for Windows users. Run all your Ansible commands on the VM in
~/trellis
, whether usingwinnfsd
or not.