Ansible_workstation/roles/dotfiles/tasks/main.yml

33 lines
741 B
YAML

---
- 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'
dest: ~/.dotfiles
become: true
become_user: "{{ me.username }}"
- name: stow configs
ansible.builtin.command:
cmd: stow {{ item }}
chdir: ~/.dotfiles/
with_items: "{{ config2stow }}"
become: true
become_user: "{{ me.username}}"
- name: home mounts
import_tasks: home_mounts.yml
- name: Gnome config
import_tasks: gnome.yml
become: true
become_user: "{{ me.username }}"
when: no # soucis avec la version de psutil