- Refactor Makefile to enhance command structure, including clearer descriptions and usage examples for targets related to development, inventory, and monitoring tasks. - Update inventory files to ensure correct host configurations and user settings, including adjustments to ansible_user for specific hosts. - Modify group_vars to streamline Tailscale configuration and ensure proper handling of authentication keys. These changes improve the clarity and usability of the Makefile and inventory setup, facilitating smoother operations across the infrastructure.
23 lines
639 B
YAML
23 lines
639 B
YAML
---
|
|
- name: Install shell packages
|
|
ansible.builtin.apt:
|
|
name:
|
|
- zsh
|
|
- tmux
|
|
- fzf
|
|
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
|