Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
move gitconfig provisioning from Vagrantfile to ansible role
Browse files Browse the repository at this point in the history
  • Loading branch information
byrond committed Nov 21, 2018
1 parent 83ffc86 commit 447726c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions conf/vagrant/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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@"
Expand Down
6 changes: 5 additions & 1 deletion conf/vagrant/provisioning/roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 447726c

Please sign in to comment.