- 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.
28 lines
830 B
YAML
28 lines
830 B
YAML
---
|
|
- name: Setup local development environment
|
|
hosts: localhost
|
|
connection: local
|
|
become: true
|
|
|
|
roles:
|
|
- {role: maintenance, tags: ['maintenance']}
|
|
- {role: base, tags: ['base', 'security']}
|
|
- {role: user, tags: ['user']}
|
|
- {role: ssh, tags: ['ssh', 'security']}
|
|
- {role: shell, tags: ['shell']}
|
|
- {role: development, tags: ['development', 'dev']}
|
|
- {role: docker, tags: ['docker']}
|
|
- {role: applications, tags: ['applications', 'apps']}
|
|
# - {role: tailscale, tags: ['tailscale', 'vpn']}
|
|
- {role: monitoring, tags: ['monitoring']}
|
|
|
|
pre_tasks:
|
|
- name: Update apt cache
|
|
ansible.builtin.apt:
|
|
update_cache: true
|
|
|
|
tasks:
|
|
- name: Display completion message
|
|
ansible.builtin.debug:
|
|
msg: "Local development environment setup completed successfully!"
|