fix: Install required tools before using them in tasks

This commit is contained in:
2025-10-20 20:31:17 +02:00
parent 506b6d630d
commit 772eb52dbe
3 changed files with 12 additions and 6 deletions
-6
View File
@@ -1,10 +1,4 @@
--- ---
- name: Install psycopg2-binary
ansible.builtin.pip:
executable: "{{ pip_executable }}"
name:
- psycopg2-binary
extra_args: --user
- name: Create DB user password - name: Create DB user password
ansible.builtin.command: ansible.builtin.command:
cmd: openssl rand -hex 32 cmd: openssl rand -hex 32
+2
View File
@@ -1,4 +1,6 @@
--- ---
- name: Install requirements
ansible.builtin.import_tasks: pip.yaml
- name: Create database - name: Create database
ansible.builtin.import_tasks: database.yaml ansible.builtin.import_tasks: database.yaml
- name: Set up domain - name: Set up domain
+10
View File
@@ -0,0 +1,10 @@
---
- name: Install setuptools
ansible.builtin.command:
cmd: "{{ pip_executable }} install setuptools --user"
- name: Install psycopg2-binary
ansible.builtin.pip:
executable: "{{ pip_executable }}"
name:
- psycopg2-binary
extra_args: --user