Skip to content

Commit

Permalink
The user needs to be present in order to check python version with be…
Browse files Browse the repository at this point in the history
…come:

Signed-off-by: Felix Kronlage-Dammers <fkr@hazardous.org>
  • Loading branch information
fkr authored and rixx committed Dec 22, 2024
1 parent f8e87d1 commit 6c47a20
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 8 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}')"
Expand Down
8 changes: 0 additions & 8 deletions tasks/package.yml
Original file line number Diff line number Diff line change
@@ -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 }}"
Expand Down

0 comments on commit 6c47a20

Please sign in to comment.