72 lines
1.9 KiB
YAML
72 lines
1.9 KiB
YAML
---
|
|
|
|
- hosts: "{{ ip_addr }}"
|
|
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
|
|
tags: config-root-user_config
|
|
|
|
- name: "[CONFIG BASE DEBIAN OS] Configure debian os"
|
|
import_role:
|
|
name: config-base-debian-os
|
|
tags: cconfig-base-debian-os_config
|
|
|
|
- name: "[CONFIG REPO VN] Add-repos-vn"
|
|
import_role:
|
|
name: config-repo-vn
|
|
tags: config-repo-vn_config
|
|
|
|
- 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
|
|
|
|
- name: "[GUEST SIDE] Install guest side"
|
|
import_role:
|
|
name: server-type
|
|
tags: server-type_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:
|
|
- config-awx-user
|
|
- config-root-user
|
|
- config-base-debian-os
|
|
- config-repo-vn
|
|
#- configure-fail2ban # or hacer
|
|
#- nagios-nrpe # or hacer
|
|
#- config-server-type # or hacer
|
|
#- vim-options # or hacer
|
|
#- configure-bashrc # or hacer
|
|
#- configure-usrmerge # or hacer |