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:
|
|
|
|
name: create-awx-user-and-config
|
|
|
|
tags: awx-user_config
|
|
|
|
|
|
|
|
- name: "[HARDNENING] Configure SSH root user"
|
|
|
|
import_role:
|
|
|
|
name: hardnening-config-root-user
|
|
|
|
tags: hardnening-config-root_config
|
|
|
|
|
|
|
|
- name: "[BASE CONFIG] Configure debian os"
|
|
|
|
import_role:
|
|
|
|
name: base-config-debian-os
|
|
|
|
tags: base-os_config
|
|
|
|
|
2023-10-13 11:21:49 +00:00
|
|
|
- name: "[NAGIOS NRPE] Install and configure nagios nrpe"
|
|
|
|
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-13 11:21:49 +00:00
|
|
|
- nagios-nrpe
|
2023-10-11 11:45:13 +00:00
|
|
|
- server-type
|
|
|
|
- add-repos-vn
|
|
|
|
- vim-options
|
|
|
|
- configure-bashrc
|
|
|
|
- configure-usrmerge
|