Enhance Linux and macOS development station configurations:
- Add user management and Oh My Zsh settings - Update service scripts to use Zsh - Include new packages and environment variables - Modify Terraform configuration for upstream services
This commit is contained in:
@@ -165,6 +165,43 @@
|
||||
- macos_dev_station_service_user_enabled | bool
|
||||
- macos_dev_station_oh_my_zsh_enabled | bool
|
||||
|
||||
- name: Ensure .zshrc sources Oh My Zsh
|
||||
become: true
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ macos_dev_station_service_home }}/.zshrc"
|
||||
block: |
|
||||
# ansible: macos_dev_station oh-my-zsh
|
||||
export ZSH="$HOME/.oh-my-zsh"
|
||||
ZSH_THEME="{{ macos_dev_station_oh_my_zsh_theme }}"
|
||||
plugins=({{ macos_dev_station_oh_my_zsh_plugins | join(' ') }})
|
||||
source "$ZSH/oh-my-zsh.sh"
|
||||
marker: "# {mark} ansible: macos_dev_station oh-my-zsh"
|
||||
create: true
|
||||
mode: "0644"
|
||||
owner: "{{ macos_dev_station_service_user }}"
|
||||
group: "{{ macos_dev_station_service_group }}"
|
||||
when:
|
||||
- macos_dev_station_service_user_enabled | bool
|
||||
- macos_dev_station_oh_my_zsh_enabled | bool
|
||||
|
||||
- name: Ensure .zshrc has extra environment variables
|
||||
become: true
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ macos_dev_station_service_home }}/.zshrc"
|
||||
block: |
|
||||
# ansible: macos_dev_station extra env vars
|
||||
{% for env_key, env_value in macos_dev_station_zshrc_extra_env.items() %}
|
||||
export {{ env_key }}="{{ env_value }}"
|
||||
{% endfor %}
|
||||
marker: "# {mark} ansible: macos_dev_station extra env vars"
|
||||
create: true
|
||||
mode: "0644"
|
||||
owner: "{{ macos_dev_station_service_user }}"
|
||||
group: "{{ macos_dev_station_service_group }}"
|
||||
when:
|
||||
- macos_dev_station_service_user_enabled | bool
|
||||
- macos_dev_station_zshrc_extra_env | length > 0
|
||||
|
||||
- name: Ensure .zshrc has ssh-agent startup for devstation
|
||||
become: true
|
||||
ansible.builtin.blockinfile:
|
||||
|
||||
Reference in New Issue
Block a user