From 9bb34e7f40eae9f76b57a92e661509903584a5cc Mon Sep 17 00:00:00 2001 From: ITQ Date: Fri, 20 Feb 2026 19:00:12 +0300 Subject: [PATCH] fix(common): fixed steps order --- roles/common/tasks/main.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/roles/common/tasks/main.yaml b/roles/common/tasks/main.yaml index d8b34f2..a209709 100644 --- a/roles/common/tasks/main.yaml +++ b/roles/common/tasks/main.yaml @@ -3,10 +3,6 @@ include_tasks: optimization.yaml tags: optimization -- name: Include cron tasks - include_tasks: cron.yaml - tags: cron - - name: Install essential packages ansible.builtin.apt: name: "{{ system_packages.essential }}" @@ -66,7 +62,7 @@ state: "{{ item.state | default('present') }}" create_home: true home: "/home/{{ item.name }}" - loop: "{{ admin_users }}" + loop: "{{ admin_users | rejectattr('name', 'equalto', 'root') | list }}" tags: users - name: Deploy SSH authorized keys @@ -79,3 +75,7 @@ - "{{ admin_users }}" - ssh_keys tags: users, ssh + +- name: Include cron tasks + include_tasks: cron.yaml + tags: cron