Feat: init refact with test

This commit is contained in:
2022-01-05 11:25:33 +01:00
parent ce2f3b872e
commit 448d5096d0
260 changed files with 1606 additions and 13294 deletions

View File

@@ -0,0 +1,14 @@
---
- name: Install stow
community.general.pacman:
name: stow
state: present
update_cache: yes
become: true
- name: Install git
community.general.pacman:
name: git
state: present
update_cache: yes
become: true

View File

@@ -0,0 +1,14 @@
---
- name: Install stow
apt:
name: stow
state: present
update_cache: yes
become: true
- name: Install git
apt:
name: git
state: present
update_cache: yes
become: true

View File

@@ -0,0 +1,20 @@
---
- 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: /home/{{ item.username }}/.dotfiles
with_items: "{{ dotusers }}"
- name: stow configs
ansible.builtin.command:
cmd: stow {{ item }}
chdir: ~/.dotfiles/
with_items: "{{ config2stow }}"