38 lines
No EOL
768 B
YAML
38 lines
No EOL
768 B
YAML
---
|
|
# Base role - combines bootstrap and common functionality
|
|
|
|
# Initial system information
|
|
- name: Show hostname
|
|
debug:
|
|
msg: "{{ ansible_hostname }}"
|
|
|
|
- name: Show IPv4 address
|
|
debug:
|
|
msg: "{{ ansible_default_ipv4.address }}"
|
|
when: ansible_default_ipv4.address is defined
|
|
|
|
- name: Show IPv6 address
|
|
debug:
|
|
msg: "{{ ansible_default_ipv6.address }}"
|
|
when: ansible_default_ipv6.address is defined
|
|
|
|
# User and group setup
|
|
- import_tasks: users.yml
|
|
tags:
|
|
- users
|
|
- bootstrap
|
|
|
|
# Base system configuration
|
|
- import_tasks: system.yml
|
|
tags:
|
|
- system
|
|
- common
|
|
|
|
# OS-specific configurations
|
|
- include_role:
|
|
name: almalinux
|
|
when: ansible_os_family == "RedHat"
|
|
|
|
- include_role:
|
|
name: debian
|
|
when: ansible_os_family == "Debian" |