33 lines
1.2 KiB
YAML
33 lines
1.2 KiB
YAML
---
|
|
- name: Ensure directories for applications are present
|
|
ansible.builtin.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
|
|
ansible.builtin.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: true
|
|
notify: install dotfiles
|
|
tags: dotfiles_repo
|
|
# TODO Put actual dotfiles in a subdirectory of the repo, so we don't have to put everything in config
|
|
|
|
- name: Register as Ansible collection
|
|
ansible.builtin.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
|
|
ansible.builtin.pip:
|
|
requirements: "{{ ansible_user_dir }}/.dotfiles/config/scripts/requirements.txt"
|
|
extra_args: --break-system-packages # It's fine, it's local anyways
|