2022-01-05 10:25:33 +00:00
|
|
|
---
|
|
|
|
- name: Install for arch
|
|
|
|
import_tasks: arch.yml
|
|
|
|
when: ansible_os_family == "Archlinux"
|
|
|
|
|
|
|
|
- name: Install for debian
|
|
|
|
import_tasks: debian.yml
|
|
|
|
when: ansible_os_family == "Debian"
|
|
|
|
|
|
|
|
- name: Clone dotfiles
|
|
|
|
ansible.builtin.git:
|
|
|
|
repo: 'https://git.opytex.org/lafrite/dotfiles.git'
|
2022-01-05 13:41:33 +00:00
|
|
|
dest: ~/.dotfiles
|
|
|
|
become: true
|
|
|
|
become_user: "{{ me.username }}"
|
2022-01-05 10:25:33 +00:00
|
|
|
|
|
|
|
- name: stow configs
|
|
|
|
ansible.builtin.command:
|
|
|
|
cmd: stow {{ item }}
|
|
|
|
chdir: ~/.dotfiles/
|
|
|
|
with_items: "{{ config2stow }}"
|
2022-01-05 13:41:33 +00:00
|
|
|
become: true
|
|
|
|
become_user: "{{ me.username}}"
|
|
|
|
|
2022-01-05 13:55:13 +00:00
|
|
|
- name: home mounts
|
|
|
|
import_tasks: home_mounts.yml
|
|
|
|
|
2022-01-05 13:41:33 +00:00
|
|
|
- name: Gnome config
|
|
|
|
import_tasks: gnome.yml
|
|
|
|
become: true
|
|
|
|
become_user: "{{ me.username }}"
|
|
|
|
when: no # soucis avec la version de psutil
|