dotfiles/config/automatrop/roles/dotfiles/tasks/main.yml
Geoffrey Frogeye 8c289fea17
Extensions system!
Because you know. There's stuff that is sensitive, some that is not
really sensitive but I can't be bothered separating the credentials from
the config, and some stuff that I just don't like to be public.
2021-06-23 21:47:42 +02:00

36 lines
1.1 KiB
YAML

- 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"
- ".ansible/collections/ansible_collections/geoffreyfrogeye"
- name: Install dotfiles repository
git:
repo: "{% if has_forge_access %}git@git.frogeye.fr:{% else %}https://git.frogeye.fr/{% endif %}geoffrey/dotfiles.git"
dest: "{{ ansible_user_dir }}/.dotfiles"
update: "{{ not has_forge_access }}"
notify: install dotfiles
- name: Register as Ansible collection
file:
state: link
src: "{{ ansible_user_dir }}/.dotfiles/config/automatrop"
path: "{{ ansible_user_dir }}/.ansible/collections/ansible_collections/geoffreyfrogeye/automatrop"
- name: Install python dependencies for scripts
pip:
requirements: "{{ ansible_user_dir }}/.dotfiles/config/scripts/requirements.txt"
- name: Install Neovim plugins
command: "nvim +PlugUpgrade +PlugUpdate +PlugInstall +qall"
failed_when: no
changed_when: yes
# TODO Build Neovim configuration better