2021-06-19 14:52:28 +00:00
|
|
|
- name: Ensure directories for applications are present
|
|
|
|
file:
|
|
|
|
state: directory
|
|
|
|
path: "{{ ansible_user_dir }}/{{ item }}"
|
|
|
|
mode: "u=rwx,g=rx,o=rx"
|
|
|
|
with_items:
|
|
|
|
- ".cache/zsh"
|
|
|
|
- ".cache/mpd"
|
|
|
|
- ".ssh"
|
|
|
|
- ".local/bin"
|
|
|
|
|
2021-06-13 12:46:01 +00:00
|
|
|
- name: Install dotfiles repository
|
|
|
|
git:
|
2021-06-19 14:52:28 +00:00
|
|
|
repo: "{% if has_forge_access %}git@git.frogeye.fr:{% else %}https://git.frogeye.fr/{% endif %}geoffrey/dotfiles.git"
|
2021-06-13 12:46:01 +00:00
|
|
|
dest: "{{ ansible_user_dir }}/.dotfiles"
|
2021-06-19 14:52:28 +00:00
|
|
|
update: "{{ not has_forge_access }}"
|
2021-06-13 12:46:01 +00:00
|
|
|
notify: install dotfiles
|
|
|
|
|
2021-06-16 20:57:18 +00:00
|
|
|
- name: Install python dependencies for scripts
|
|
|
|
pip:
|
|
|
|
requirements: "{{ ansible_user_dir }}/.dotfiles/config/scripts/requirements.txt"
|
2021-06-19 14:52:28 +00:00
|
|
|
|
|
|
|
- name: Install Neovim plugins
|
|
|
|
command: "nvim +PlugUpgrade +PlugUpdate +PlugInstall +qall"
|
|
|
|
failed_when: no
|
|
|
|
changed_when: yes
|
|
|
|
# TODO Build Neovim configuration better
|
|
|
|
|