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

49 lines
1.2 KiB
YAML
Raw Normal View History

---
- name: Converge
hosts: all
become: yes
vars:
users:
2022-03-04 04:56:37 +00:00
- username: gooduser
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
2022-01-11 21:20:52 +00:00
public_key:
- keyfile: id_encrypt_fool.pub
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