Skip to content

Commit 74670b3

Browse files
author
Marshall Van Loon
committed
inject correct python command into wait_on_postgres
1 parent 58ade60 commit 74670b3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

tasks/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@
3737
- wait_on_postgres.py
3838
- manage_django.sh
3939

40+
- name: Copy wait_on_postgres script
41+
template:
42+
src: "{{ role_path }}/templates/wait_on_postgres.py.j2"
43+
dest: "/usr/bin/wait_on_postgres.py"
44+
owner: root
45+
group: root
46+
mode: 0775
47+
4048
- name: Copy any extra script templates
4149
template:
4250
src: "/src/{{ item }}"

files/wait_on_postgres.py renamed to templates/wait_on_postgres.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env {{ virtualenv_python_version }}
22

33
import sys
44
import socket

0 commit comments

Comments
 (0)