mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 08:37:56 +02:00
fix: Install required tools before using them in tasks
This commit is contained in:
@@ -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
|
||||
ansible.builtin.command:
|
||||
cmd: openssl rand -hex 32
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
---
|
||||
- name: Install requirements
|
||||
ansible.builtin.import_tasks: pip.yaml
|
||||
- name: Create database
|
||||
ansible.builtin.import_tasks: database.yaml
|
||||
- name: Set up domain
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user