From a84dcc97a6b6847e0c290d183a0311779ee816ea Mon Sep 17 00:00:00 2001 From: rubenb Date: Tue, 31 Oct 2023 11:18:47 +0100 Subject: [PATCH] comment tags --- linux-base-config-debian-ct.yaml | 14 +++---- linux-base-config-debian-vm.yaml | 72 ++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+), 7 deletions(-) create mode 100644 linux-base-config-debian-vm.yaml diff --git a/linux-base-config-debian-ct.yaml b/linux-base-config-debian-ct.yaml index 44c4557..0802d40 100644 --- a/linux-base-config-debian-ct.yaml +++ b/linux-base-config-debian-ct.yaml @@ -15,12 +15,12 @@ - name: "[CONFIG ROOT USER] Configure SSH root user" import_role: name: config-root-user - tags: config-root-user_config +# tags: config-root-user_config - name: "[CONFIG BASE DEBIAN OS] Configure debian os" import_role: name: config-base-debian-os - tags: config-base-debian-os_config +# tags: config-base-debian-os_config - name: "[CONFIG LOCALES] Set locales" import_role: @@ -33,22 +33,22 @@ - name: "[CONFIG REPO VN] Add-repos-vn" import_role: name: config-repo-vn - tags: config-repo-vn_config +# tags: config-repo-vn_config - name: "[CONFIG FAIL2BAN] Install and configure fail2ban service" import_role: name: config-fail2ban - tags: config-fail2ban_config +# 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 +# tags: config-nagios-nrpe_config - name: "[CONFIG SERVER TYPE] Install guest side" import_role: name: config-server-type - tags: config-server-type_config +# tags: config-server-type_config # NO HACE FALTA , PROXMOX CT utiliza ntp client de proxmox # - name: "[CONFIG NTP] Install and configure ntp" @@ -59,7 +59,7 @@ - name: "[CONFIG ZABBIX AGENT] Install and configure ZABBIX AGENT" import_role: name: config-zabbix-agent - tags: config-zabbix-agent_config +# tags: config-zabbix-agent_config #handlers: # - include_tasks: roles/{{ item }}/handlers/main.yaml diff --git a/linux-base-config-debian-vm.yaml b/linux-base-config-debian-vm.yaml new file mode 100644 index 0000000..7e61813 --- /dev/null +++ b/linux-base-config-debian-vm.yaml @@ -0,0 +1,72 @@ +--- + +- 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: config-base-debian-os_config + + - 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 + + - 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 \ No newline at end of file