diff --git a/conf/vagrant/Vagrantfile b/conf/vagrant/Vagrantfile index f257c01..b3a43fa 100644 --- a/conf/vagrant/Vagrantfile +++ b/conf/vagrant/Vagrantfile @@ -46,8 +46,6 @@ Vagrant.configure(2) do |config| box.ssh.forward_agent = true end - - config.vm.provision "file", source: "~/.gitconfig", destination: "$HOME/.gitconfig" config.vm.provision "the-vagrant", type: "ansible" do |ansible| ansible.playbook = "@playbook@" diff --git a/conf/vagrant/provisioning/roles/common/tasks/main.yml b/conf/vagrant/provisioning/roles/common/tasks/main.yml index ab7c783..48d1078 100644 --- a/conf/vagrant/provisioning/roles/common/tasks/main.yml +++ b/conf/vagrant/provisioning/roles/common/tasks/main.yml @@ -13,7 +13,11 @@ - name: Common | Configure PALANTIR_ENVIRONMENT variable lineinfile: dest=/home/vagrant/.profile state=present line='export PALANTIR_ENVIRONMENT="vagrant"' tags: common - + +- name: Common | Copy user's gitconfig from host + copy: src=~/.gitconfig dest=/home/vagrant/.gitconfig + tags: common + - name: Common | Get user.name from host's gitconfig git_config: name: user.name