-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove venv activation when running commands in the web_server container
- Loading branch information
Igor Sudak
committed
Apr 9, 2024
1 parent
018910c
commit 8dc7dba
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,13 +47,13 @@ | |
- name: Bootstrap permissions | ||
community.docker.docker_container_exec: | ||
container: "{{ container_name_prefix }}_web_server_1" | ||
command: "bash -c 'source env/bin/activate && chmod +x scripts/bootstrap_permissions.py && python3 scripts/bootstrap_permissions.py || true'" | ||
command: bash -c 'python3 scripts/bootstrap_permissions.py || true' | ||
when: is_clean_installation.stat.exists == False | ||
|
||
- name: Bootstrap repositories | ||
community.docker.docker_container_exec: | ||
container: "{{ container_name_prefix }}_web_server_1" | ||
command: "bash -c 'source env/bin/activate && chmod +x scripts/bootstrap_repositories.py && python3 scripts/bootstrap_repositories.py -c reference_data/platforms.yaml'" | ||
command: python3 scripts/bootstrap_repositories.py -c reference_data/platforms.yaml | ||
register: result | ||
until: result is succeeded | ||
retries: 10 | ||
|
@@ -63,7 +63,7 @@ | |
- name: Activate user | ||
community.docker.docker_container_exec: | ||
container: "{{ container_name_prefix }}_web_server_1" | ||
command: "bash -c 'source env/bin/activate && chmod +x scripts/manage_users.py && python3 scripts/manage_users.py -e [email protected] -t AlmaLinux_team --verify --superuser || true'" | ||
command: bash -c 'python3 scripts/manage_users.py -e [email protected] -t AlmaLinux_team --verify --superuser || true' | ||
when: is_clean_installation.stat.exists == False | ||
|
||
- name: Checking if GPG key exists on web_server | ||
|
@@ -102,7 +102,7 @@ | |
- name: Bootstrap flavours | ||
community.docker.docker_container_exec: | ||
container: "{{ container_name_prefix }}_web_server_1" | ||
command: "bash -c 'source env/bin/activate && chmod +x scripts/manage_flavours.py && python3 scripts/manage_flavours.py -c reference_data/platform_flavors.yaml'" | ||
command: python3 scripts/manage_flavours.py -c reference_data/platform_flavors.yaml | ||
when: is_clean_installation.stat.exists == False | ||
|
||
- name: ensure file exists | ||
|