From 6c47a203eb353619619ee6bd8f3a0a713d36cf9d Mon Sep 17 00:00:00 2001 From: Felix Kronlage-Dammers Date: Sun, 22 Dec 2024 09:14:38 +0100 Subject: [PATCH] The user needs to be present in order to check python version with become: Signed-off-by: Felix Kronlage-Dammers --- tasks/main.yml | 8 ++++++++ tasks/package.yml | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 026c2c9..db0ce93 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,6 +2,14 @@ - name: Install system requirements import_tasks: requirements.yml +- name: Create a pretalx user + user: + name: "{{ pretalx_system_user }}" + state: present + system: true + tags: + - pretalx + - name: Detect installed system Python version command: | python3 -c "import sys; (major, minor) = sys.version_info[0:2]; print(f'{major}.{minor}')" diff --git a/tasks/package.yml b/tasks/package.yml index 8b43288..5a26536 100644 --- a/tasks/package.yml +++ b/tasks/package.yml @@ -1,12 +1,4 @@ --- -- name: Create a pretalx user - user: - name: "{{ pretalx_system_user }}" - state: present - system: true - tags: - - pretalx - - name: Create required directories file: path: "{{ item }}"