ilia d4ce0a247d
All checks were successful
CI / lint-and-test (push) Successful in 57s
CI / ansible-validation (push) Successful in 2m12s
CI / secret-scanning (push) Successful in 1m24s
CI / dependency-scan (push) Successful in 1m29s
CI / sast-scan (push) Successful in 1m53s
CI / license-check (push) Successful in 52s
CI / vault-check (push) Successful in 1m50s
CI / playbook-test (push) Successful in 1m53s
CI / container-scan (push) Successful in 1m23s
CI / workflow-summary (push) Successful in 1m14s
Fix: Remove artifact upload, update Trivy flags, add workflow summary, and add git to shell role
2025-12-14 14:57:22 -05:00

24 lines
651 B
YAML

---
- name: Install shell packages
ansible.builtin.apt:
name:
- zsh
- tmux
- fzf
- git
state: present
become: true
# Merge shell_users and shell_additional_users
- name: Build complete user list
ansible.builtin.set_fact:
shell_all_users: "{{ (shell_users | default([ansible_user])) + (shell_additional_users | default([])) | unique }}"
# Configure shell for each user
- name: Configure shell for each user
ansible.builtin.include_tasks: configure_user_shell.yml
loop: "{{ shell_all_users }}"
loop_control:
loop_var: current_user
when: shell_all_users is defined and shell_all_users | length > 0