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

136 lines
3.6 KiB
YAML
Raw Normal View History

2023-10-31 10:18:47 +00:00
---
2023-12-19 14:55:30 +00:00
- hosts: '{{ ip_addr }}'
2023-10-31 10:18:47 +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
2024-02-12 10:37:39 +00:00
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2023-10-31 10:18:47 +00:00
- name: "[CONFIG ROOT USER] Configure SSH root user"
import_role:
name: config-root-user
# tags: config-root-user_config
2024-02-12 12:11:05 +00:00
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- name: "[CONFIG HOSTNAME] Configure hostname"
import_role:
name: config-hostname
2024-02-14 14:52:35 +00:00
- name: "[CONFIG HOSTS FILE] Configure hosts file"
import_role:
name: config-hosts
2024-02-14 16:07:15 +00:00
- name: "[CONFIG RESOLV FILE] Configure resolv file"
import_role:
name: config-resolv
2024-02-12 10:37:39 +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
- name: "[CONFIG UPDATE] Config update"
import_role:
name: config-update-and-upgrade-packages
- name: "[CONFIG INSTALL PACKAGES] Install packages"
import_role:
name: config-install-packages
- name: "[CONFIG RELAYHOST SMTP] Config relayhost smtp"
import_role:
name: config-relayhost-smtp
- name: "[CONFIG CENTRALIZED AUTH] Config centralized auth"
import_role:
name: config-centralized-auth
- name: "[CONFIG SUDOERS] Config sudoers"
import_role:
name: config-sudoers
2024-02-14 10:14:49 +00:00
# - name: "[CONFIG SECURE GRUB] configure secure grub"
# import_role:
# name: config-secure-grub
- name: "[CONFIG VIM OPTIONS] Config vim options"
import_role:
name: config-vim-options
- name: "[CONFIG MOTD] Config motd"
import_role:
name: config-motd
2024-02-12 10:37:39 +00:00
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2024-02-14 12:12:29 +00:00
# - name: "[CONFIG HOT PLUG] Install and configure hot plug"
# import_role:
# name: config-hot-plug
# tags:
# - hot-plug
2024-02-12 10:37:39 +00:00
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2023-10-31 10:18:47 +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
# tags: config-repo-vn_config
- name: "[CONFIG FAIL2BAN] Install and configure fail2ban service"
import_role:
name: config-fail2ban
# tags: config-fail2ban_config
- name: "[CONFIG NAGIOS NRPE] Install and configure nagios nrpe service"
import_role:
name: config-nagios-nrpe
# tags: config-nagios-nrpe_config
- name: "[CONFIG SERVER TYPE] Install guest side"
import_role:
name: config-server-type
# tags: config-server-type_config
- name: "[CONFIG NTP] Install and configure ntp"
import_role:
name: config-ntp
# tags: config-ntp_config
2023-11-06 16:15:10 +00:00
- name: "[CONFIG AUTOFS HOMES] Install and configure AUTOFS HOMES"
import_role:
name: config-autofs-homes
2023-10-31 10:18:47 +00:00
- name: "[CONFIG ZABBIX AGENT] Install and configure ZABBIX AGENT"
import_role:
name: config-zabbix-agent
# tags: config-zabbix-agent_config
#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