Meta-installer

This commit is contained in:
Geoffrey Frogeye 2023-12-09 23:51:04 +01:00
parent 1876ddeb71
commit a3436268c8
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
10 changed files with 100 additions and 40 deletions

View file

@ -5,11 +5,6 @@
- role: system
tags: system
when: root_access
- role: dotfiles
tags: dotfiles
- role: termux
tags: termux
when: termux
- role: extensions
tags: extensions
# TODO Dependencies

View file

@ -1,3 +0,0 @@
---
- name: Install dotfiles
ansible.builtin.command: "{{ ansible_user_dir }}/.dotfiles/config/scripts/dotfiles install"

View file

@ -1,9 +0,0 @@
---
- 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

View file

@ -1,14 +0,0 @@
---
- name: Load extensions
ansible.builtin.include_role:
name: geoffreyfrogeye.{{ extension }}automatrop.entry
loop: "{{ extensions }}"
loop_control:
loop_var: extension
tags: always
- name: Configure extensions rc sourcing
ansible.builtin.template:
src: extrc.sh.j2
dest: "{{ ansible_user_dir }}/.config/shell/extrc"
mode: u=rw,g=r,o=r

View file

@ -1,7 +0,0 @@
#!/usr/bin/env bash
{% for extension in extensions %}
trysource ~/.config/{{ extension }}scripts/{{ extension }}profile
{% endfor %}
{# TODO Rename profile as rc, and add env #}
{# TODO Put in non-linked path #}