vn-ansible/linux-base-config-debian.yaml

72 lines
1.9 KiB
YAML
Raw Normal View History

2023-10-11 11:45:13 +00:00
---
- hosts: "{{ ip_addr }}"
become: yes
become_method: sudo
gather_facts: yes
tasks:
2023-10-20 08:02:13 +00:00
# - name: "[CONFIG AWX-USER] Create awx user and config ssh-key"
# import_role:
# name: config-awx-user
# tags: config-awx-user_config
2023-10-11 11:45:13 +00:00
2023-10-18 07:48:44 +00:00
- name: "[CONFIG ROOT USER] Configure SSH root user"
2023-10-11 11:45:13 +00:00
import_role:
2023-10-18 06:54:04 +00:00
name: config-root-user
2023-10-18 07:48:44 +00:00
tags: config-root-user_config
2023-10-11 11:45:13 +00:00
2023-10-18 07:48:44 +00:00
- name: "[CONFIG BASE DEBIAN OS] Configure debian os"
2023-10-11 11:45:13 +00:00
import_role:
2023-10-18 07:48:44 +00:00
name: config-base-debian-os
2023-10-20 08:52:29 +00:00
tags: config-base-debian-os_config
2023-10-18 07:48:44 +00:00
2023-10-30 12:00:04 +00:00
- name: "[CONFIG LOCALES] Set locales"
import_role:
name: config-locales
- name: "[CONFIG TZDATA] Set timezone"
import_role:
name: config-tzdata
2023-10-18 07:48:44 +00:00
- name: "[CONFIG REPO VN] Add-repos-vn"
import_role:
name: config-repo-vn
tags: config-repo-vn_config
2023-10-11 11:45:13 +00:00
2023-10-18 09:07:16 +00:00
- name: "[CONFIG FAIL2BAN] Install and configure fail2ban service"
2023-10-17 13:10:41 +00:00
import_role:
2023-10-18 09:07:16 +00:00
name: config-fail2ban
tags: config-fail2ban_config
2023-10-17 13:10:41 +00:00
2023-10-23 12:00:41 +00:00
- name: "[CONFIG NAGIOS NRPE] Install and configure nagios nrpe service"
import_role:
name: config-nagios-nrpe
tags: config-nagios-nrpe_config
2023-10-18 09:07:16 +00:00
- name: "[CONFIG SERVER TYPE] Install guest side"
2023-10-11 11:45:13 +00:00
import_role:
2023-10-18 09:07:16 +00:00
name: config-server-type
tags: config-server-type_config
2023-10-11 11:45:13 +00:00
2023-10-23 11:46:57 +00:00
- name: "[CONFIG NTP] Install and configure ntp"
import_role:
name: config-ntp
tags: config-ntp_config
2023-10-24 07:29:29 +00:00
- name: "[CONFIG ZABBIX AGENT] Install and configure ZABBIX AGENT"
import_role:
name: config-zabbix-agent
tags: config-zabbix-agent_config
2023-10-20 07:41:40 +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