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

72 lines
1.8 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:
- name: "[CREATE AWX-USER] Create awx user and config ssh-key"
import_role:
2023-10-18 06:54:04 +00:00
name: config-awx-user
2023-10-11 11:45:13 +00:00
tags: awx-user_config
- name: "[HARDNENING] Configure SSH root user"
import_role:
2023-10-18 06:54:04 +00:00
name: config-root-user
tags: config-root_config
2023-10-11 11:45:13 +00:00
2023-10-18 06:31:50 +00:00
- name: "[COMMON BASE CONFIG] Configure debian os"
2023-10-11 11:45:13 +00:00
import_role:
2023-10-18 06:31:50 +00:00
name: common-base-config-debian-os
tags: common-base-os_config
2023-10-11 11:45:13 +00:00
2023-10-17 13:10:41 +00:00
- name: "[FAIL2BAN CONFIG] Install and configure fail2ban service"
import_role:
name: configure-fail2ban
tags: fail2ban-config_config
- name: "[NAGIOS NRPE] Install and configure nagios nrpe service"
import_role:
name: nagios-nrpe
tags: nagios-nrpe_config
2023-10-11 11:45:13 +00:00
- name: "[GUEST SIDE] Install guest side"
import_role:
name: server-type
tags: server-type_config
- name: "[CONFIG REPOS] Add-repos-vn"
import_role:
name: add-repos-vn
tags: add-repos-vn_config
- name: "[CONFIG VIM] Configure vim options"
import_role:
name: vim-options
tags: vim-options_config
- name: "[CONFIG BASHRC] Configure bashrc"
import_role:
name: configure-bashrc
tags: configure-bashrc_config
- name: "[CONFIG USRMERGE] Configure usrmerge"
import_role:
name: configure-usrmerge
tags: configure-usrmerge_config
handlers:
- include_tasks: roles/{{ item }}/handlers/main.yaml
with_items:
- create-awx-user-and-config
- hardnening-config-root-user
- base-config-debian-os
2023-10-17 13:10:41 +00:00
- configure-fail2ban
- nagios-nrpe
2023-10-18 06:31:50 +00:00
#- server-type # Eliminada se aplica en common-base-config-debian
2023-10-11 11:45:13 +00:00
- add-repos-vn
- vim-options
- configure-bashrc
- configure-usrmerge