---
- name: Set homefiles directory
  set_fact:
    homefiles_dir: "{{ lookup('env','HOME') }}/homefiles"

- name: Clone homefiles repository
  git:
    repo: git@github.com:fernandoacorreia/homefiles.git
    dest: "{{ homefiles_dir }}"

- name: Create link for ~/bin
  file:
    src: "{{ homefiles_dir }}/bin"
    dest: "{{ home_dir }}/bin"
    state: link


---
- name: Set homefiles directory
  set_fact:
    homefiles_dir: "{{ lookup('env','HOME') }}/homefiles"

- name: Clone homefiles repository
  git:
    repo: git@github.com:fernandoacorreia/homefiles.git
    dest: "{{ homefiles_dir }}"

- name: Create link for ~/bin
  file:
    src: "{{ homefiles_dir }}/bin"
    dest: "{{ home_dir }}/bin"
    state: link

- name: Create link for ~/.profile
  file:
    src: "{{ homefiles_dir }}/profile.sh"
    dest: "{{ home_dir }}/.profile"
    state: link

- name: Create link for ~/.bash_profile
  file:
    src: "{{ homefiles_dir }}/bash_profile.sh"
    dest: "{{ home_dir }}/.bash_profile"
    state: link

- name: Create link for ~/.bashrc
  file:
    src: "{{ homefiles_dir }}/bashrc.sh"
    dest: "{{ home_dir }}/.bashrc"
    state: link

Create links for shell profiles
Create links for shell profiles
