From c94baae7ff4fcdeca96afa988e9adc2aaf4bd123 Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 27 Mar 2026 15:12:08 +0100 Subject: [PATCH] Clean up whitespace and formatting in main.yml for improved readability --- roles/common/tasks/main.yml | 46 ++++++++++--------------------------- 1 file changed, 12 insertions(+), 34 deletions(-) diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index c909e44..e7eb52e 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -1,8 +1,7 @@ --- - - import_tasks: show.yml tags: - - show + - show # tags supported inside basic.yml # @@ -13,7 +12,6 @@ tags: - basic - # tags supported inside apt.yml # # apt-update @@ -34,7 +32,6 @@ - ansible_facts['distribution'] == "Debian" tags: apt - # tags supported inside apt-gateway.yml: # # @@ -44,7 +41,6 @@ - apt - apt-gateway-server - # # yum-update # yum-base-install @@ -55,7 +51,6 @@ - ansible_facts.distribution == "CentOS" or ansible_facts.distribution == "Fedora" tags: yum - # tags supportetd inside caching-nameserver.yml # # apt-caching-nameserver @@ -65,7 +60,6 @@ when: groups['caching_nameserver']|string is search(inventory_hostname) tags: caching-nameserver - # tags supported inside systemd-resolved.yml # # systemd-resolved @@ -77,17 +71,15 @@ - ansible_facts['distribution_major_version'] > "11" - systemd_resolved is defined and systemd_resolved|bool - - - import_tasks: tor.yml when: - inventory_hostname in groups['mail_server'] - ansible_facts['distribution'] == "Debian" - tags: + tags: - tor-service - import_tasks: cron.yml - tags: + tags: - cron # tags supported inside shell.yml @@ -99,10 +91,9 @@ when: - ansible_facts['distribution'] == "Debian" tags: - - shell-config - - vim-config - - zsh-config - + - shell-config + - vim-config + - zsh-config # tags supported inside users.yml: # @@ -115,21 +106,19 @@ # root-defaut-ssh-keypair # insert_root_ssh_public_key - import_tasks: users.yml - tags: + tags: - users - # tags supported inside users-systemfiles.yml: # # bash # profile # vim - import_tasks: users-systemfiles.yml - tags: + tags: - users - users-systemfiles - # tags supported inside webadmin-user.yml: # # users-exists @@ -140,19 +129,17 @@ # insert_webadmin_ssh_public_key - import_tasks: webadmin-user.yml when: groups['webadmin']|string is search(inventory_hostname) - tags: + tags: - users - users-systemfiles - webadmin - # tags supported inside sshd.yml # # sshd-config - import_tasks: sshd.yml tags: sshd - # tags supported inside sudoers.yml: # # sudoers-remove @@ -161,11 +148,9 @@ - import_tasks: sudoers.yml tags: sudoers - - import_tasks: motd.yml tags: motd - # tags supported inside ntp.yml: # # ntp-server @@ -175,7 +160,6 @@ when: - "'lxc_guest' not in group_names" - # tags supportetd inside git.yml # # git-firewall-repository @@ -198,7 +182,6 @@ - import_tasks: git.yml tags: git - # tags supported inside nfs.yml: # # nfs-server @@ -207,7 +190,6 @@ tags: - nfs - # tags supported inside x2go-server.yml: # # x2go-server @@ -216,7 +198,6 @@ tags: - x2go - # tags supported inside copy_files.yml: # # copy-files @@ -233,7 +214,6 @@ tags: - symlink-files - # tags supported inside config_files_mailsystem_scripts.yml: # - import_tasks: config_files_mailsystem_scripts.yml @@ -276,9 +256,9 @@ - remove-samba-user - import_tasks: redis-server.yml - when: inventory_hostname in groups['nextcloud_server'] or - inventory_hostname in groups['apache2_webserver'] or - inventory_hostname in groups['nginx_webserver'] + when: inventory_hostname in groups['nextcloud_server'] or + inventory_hostname in groups['apache2_webserver'] or + inventory_hostname in groups['nginx_webserver'] tags: - redis-server @@ -299,10 +279,8 @@ tags: - services - - import_tasks: systemd-services_redhat_based_OS.yml when: - ansible_facts.os_family == "RedHat" tags: - services -