--- - 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: config-awx-user tags: awx-user_config - name: "[HARDNENING] Configure SSH root user" import_role: name: config-root-user tags: config-root_config - name: "[COMMON BASE CONFIG] Configure debian os" import_role: name: common-base-config-debian-os tags: common-base-os_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 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 - configure-fail2ban - nagios-nrpe #- server-type # Eliminada se aplica en common-base-config-debian - add-repos-vn - vim-options - configure-bashrc - configure-usrmerge