Skip to content

Commit

Permalink
Remove venv activation when running commands in the web_server container
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Sudak committed Apr 9, 2024
1 parent 018910c commit 8dc7dba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions roles/dev_deploy/tasks/misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8dc7dba

Please sign in to comment.