2023-10-30 11:11:01 +00:00
|
|
|
---
|
|
|
|
|
2023-12-19 14:55:30 +00:00
|
|
|
- hosts: '{{ ip_addr }}'
|
2023-10-30 11:11:01 +00:00
|
|
|
become: yes
|
|
|
|
become_method: sudo
|
|
|
|
gather_facts: yes
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
# - name: "[CONFIG AWX-USER] Create awx user and config ssh-key"
|
|
|
|
# import_role:
|
|
|
|
# name: config-awx-user
|
|
|
|
# tags: config-awx-user_config
|
|
|
|
|
|
|
|
- name: "[CONFIG ROOT USER] Configure SSH root user"
|
|
|
|
import_role:
|
|
|
|
name: config-root-user
|
2023-10-31 10:18:47 +00:00
|
|
|
# tags: config-root-user_config
|
2023-10-30 11:11:01 +00:00
|
|
|
|
|
|
|
- name: "[CONFIG BASE DEBIAN OS] Configure debian os"
|
|
|
|
import_role:
|
|
|
|
name: config-base-debian-os
|
2023-10-31 10:18:47 +00:00
|
|
|
# tags: config-base-debian-os_config
|
2023-10-30 11:11:01 +00:00
|
|
|
|
|
|
|
- name: "[CONFIG LOCALES] Set locales"
|
|
|
|
import_role:
|
|
|
|
name: config-locales
|
|
|
|
|
|
|
|
- name: "[CONFIG TZDATA] Set timezone"
|
|
|
|
import_role:
|
|
|
|
name: config-tzdata
|
|
|
|
|
|
|
|
- name: "[CONFIG REPO VN] Add-repos-vn"
|
|
|
|
import_role:
|
|
|
|
name: config-repo-vn
|
2023-10-31 10:18:47 +00:00
|
|
|
# tags: config-repo-vn_config
|
2023-10-30 11:11:01 +00:00
|
|
|
|
|
|
|
- name: "[CONFIG FAIL2BAN] Install and configure fail2ban service"
|
|
|
|
import_role:
|
|
|
|
name: config-fail2ban
|
2023-10-31 10:18:47 +00:00
|
|
|
# tags: config-fail2ban_config
|
2023-10-30 11:11:01 +00:00
|
|
|
|
|
|
|
- name: "[CONFIG NAGIOS NRPE] Install and configure nagios nrpe service"
|
|
|
|
import_role:
|
|
|
|
name: config-nagios-nrpe
|
2023-10-31 10:18:47 +00:00
|
|
|
# tags: config-nagios-nrpe_config
|
2023-10-30 11:11:01 +00:00
|
|
|
|
|
|
|
- name: "[CONFIG SERVER TYPE] Install guest side"
|
|
|
|
import_role:
|
|
|
|
name: config-server-type
|
2023-10-31 10:18:47 +00:00
|
|
|
# tags: config-server-type_config
|
2023-10-30 11:11:01 +00:00
|
|
|
|
|
|
|
# NO HACE FALTA , PROXMOX CT utiliza ntp client de proxmox
|
|
|
|
# - name: "[CONFIG NTP] Install and configure ntp"
|
|
|
|
# import_role:
|
|
|
|
# name: config-ntp
|
|
|
|
# tags: config-ntp_config
|
|
|
|
|
|
|
|
- name: "[CONFIG ZABBIX AGENT] Install and configure ZABBIX AGENT"
|
|
|
|
import_role:
|
|
|
|
name: config-zabbix-agent
|
2023-10-31 10:18:47 +00:00
|
|
|
# tags: config-zabbix-agent_config
|
2023-10-30 11:11:01 +00:00
|
|
|
|
|
|
|
#handlers:
|
|
|
|
# - include_tasks: roles/{{ item }}/handlers/main.yaml
|
|
|
|
# with_items:
|
|
|
|
# - config-awx-user
|
|
|
|
# - config-root-user
|
|
|
|
# - config-base-debian-os
|
|
|
|
# - config-repo-vn
|
|
|
|
# - config-fail2ban # or hacer
|
|
|
|
# - config-nagios-nrpe # or hacer
|
|
|
|
# - config-server-type
|