Ansible_workstation/roles/user/molecule/default/converge.yml

47 lines
1.1 KiB
YAML
Raw Normal View History

---
- name: Converge
hosts: all
become: yes
vars:
users:
- username: user
password: "$y$j9T$PR8GfM2MjGudOCd7hF9NP1$/qRGtuNuWaRVVGmB1A4rgtaT0MMB9IoB4fnaxW1kvf4" #plop
shell: "/bin/zsh"
config:
giturl: "https://git.opytex.org/lafrite/dotfiles.git"
stowing: ["nvim", "tmux", "zsh"]
- username: admin
password: "$y$j9T$PR8GfM2MjGudOCd7hF9NP1$/qRGtuNuWaRVVGmB1A4rgtaT0MMB9IoB4fnaxW1kvf4" #plop
groups: ["wheel"]
system: yes
config:
giturl: "https://git.opytex.org/lafrite/dotfiles.git"
stowing: ["tmux"]
pre_tasks:
- name: update_cache for arch
pacman:
name:
- zsh
state: present
update_cache: yes
become: yes
when: ansible_os_family == "Archlinux"
- name: update_cache for debian
apt:
name:
- zsh
state: present
update_cache: yes
become: yes
when: ansible_os_family == "Debian"
tasks:
- name: "Include user"
include_role:
name: "user"
loop: "{{ users }}"
loop_control:
loop_var: user