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-10 04:24:47 +00:00
|
|
|
dest: "/home/{{ username }}/.dotfiles"
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
- name: user owns its dotfiles
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "/home/{{ username }}/.dotfiles"
|
|
|
|
owner: "{{ username }}"
|
|
|
|
become: yes
|
2022-01-05 10:25:33 +00:00
|
|
|
|
|
|
|
- name: stow configs
|
|
|
|
ansible.builtin.command:
|
|
|
|
cmd: stow {{ item }}
|
2022-01-10 04:24:47 +00:00
|
|
|
chdir: "/home/{{ username }}/.dotfiles"
|
2022-01-05 10:25:33 +00:00
|
|
|
with_items: "{{ config2stow }}"
|
2022-01-10 04:24:47 +00:00
|
|
|
become: yes
|
2022-01-05 13:55:13 +00:00
|
|
|
|
2022-01-05 13:41:33 +00:00
|
|
|
- name: Gnome config
|
|
|
|
import_tasks: gnome.yml
|
2022-01-10 04:24:47 +00:00
|
|
|
#become: true
|
|
|
|
become_user: "{{ username }}"
|
2022-01-05 13:41:33 +00:00
|
|
|
when: no # soucis avec la version de psutil
|