Refactor: Organize Ansible project structure
- Reorganized Ansible project structure to follow best practices. - Created dedicated directories: , , , , and . - Categorized playbooks into (host-specific) and (service-specific). - Moved all roles into the directory and standardized their naming conventions. - Relocated to for better variable management. - Renamed to to reflect its global variable scope. - Created to correctly set the to the new directory. - Moved and into the directory. - Added to providing explanations for common commands. - Cleaned up directories from all individual roles to centralize version control.
This commit is contained in:
28
playbooks/hosts/rpi.yml
Normal file
28
playbooks/hosts/rpi.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
- name: pi-init
|
||||
hosts: pi-local
|
||||
become: true
|
||||
vars_files:
|
||||
- vault.yml
|
||||
- zeus-vars.yml
|
||||
tasks:
|
||||
- name: tools_for_command_line
|
||||
ansible.builtin.include_role:
|
||||
name: tools_for_command_line
|
||||
|
||||
- name: linux_config_init
|
||||
ansible.builtin.include_role:
|
||||
name: linux_config_init
|
||||
vars:
|
||||
user: warezjoe
|
||||
uid: 1001
|
||||
ssh_key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII823CLHAgx4nTaTr0Wys65YWN9pVnDfbWvsZcFwCnWl"
|
||||
set_ip: False
|
||||
set_hostname: False
|
||||
|
||||
- name:
|
||||
ansible.builtin.include_role:
|
||||
name: ansible-role-security
|
||||
|
||||
- name:
|
||||
ansible.builtin.include_role:
|
||||
name: ansible-role-docker
|
||||
Reference in New Issue
Block a user