Skip to content

Commit

Permalink
[ansible] Re-order / Structure Dotfile mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
bascht committed Nov 14, 2016
1 parent cc24db3 commit 3028992
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ Vagrant.configure(2) do |config|
end

config.vm.synced_folder '~/Documents', '/home/bascht/Documents', type: 'sshfs'
config.vm.synced_folder '~/.homesick/', '/home/bascht/.homesick', type: 'rsync'
config.vm.synced_folder '~/.homesick/repos/private', '/home/bascht/.homesick/repos/private', type: 'rsync'
end
7 changes: 7 additions & 0 deletions ansible/tasks/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,10 @@
mount: name=/home/bascht/Code src='/dev/vdb' fstype=ext4 state=mounted
when: code_mount_exists == True
- lineinfile: dest=/etc/exports line="/home/bascht/Code 192.168.0.0/16(rw,sync)"
- name: "Clone Dotfiles"
git: repo=https://github.com/bascht/dotfiles-public.git dest=/home/bascht/.homesick/repos/public
become_user: "{{ vm_user }}"
- name: "Symlink dotfiles"
command: homesick link public --force
become: yes
become_user: "{{ vm_user }}"
8 changes: 0 additions & 8 deletions ansible/tasks/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@
git: repo=https://github.com/bbatsov/prelude.git dest=/home/bascht/.emacs.d
become_user: "{{ vm_user }}"
when: emacs_conf.stat.isdir is not defined
- name: "Symlink dotfiles"
command: homesick link {{ item }} --force
when: tmux_conf.stat.islnk is not defined
become: yes
become_user: "{{ vm_user }}"
with_items:
- public
- private
- name: "Download OMF"
git: repo=https://github.com/oh-my-fish/oh-my-fish.git dest=/home/bascht/.local/omf
become_user: "{{ vm_user }}"
Expand Down

0 comments on commit 3028992

Please sign in to comment.