diff --git a/conf/vagrant/provisioning/roles/common/tasks/main.yml b/conf/vagrant/provisioning/roles/common/tasks/main.yml index 3ef6719..0d8da24 100644 --- a/conf/vagrant/provisioning/roles/common/tasks/main.yml +++ b/conf/vagrant/provisioning/roles/common/tasks/main.yml @@ -13,3 +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 gitignore + copy: src=roles/common/templates/gitignore dest=/home/vagrant/.gitignore + tags: common + +- name: Common | Configure global gitignore + command: /usr/bin/git config --global core.excludesfile ~/.gitignore + tags: common diff --git a/conf/vagrant/provisioning/roles/common/templates/gitignore b/conf/vagrant/provisioning/roles/common/templates/gitignore new file mode 100644 index 0000000..51397ca --- /dev/null +++ b/conf/vagrant/provisioning/roles/common/templates/gitignore @@ -0,0 +1,17 @@ +# Folder view configuration files +.DS_Store + +# cache files +._* + +# Files that might appear on external disks +.Spotlight-V100 +.Trashes + +# IDE files +.idea + +# Application specific files +node_modules +npm-debug.log +.sass-cache