File tree Expand file tree Collapse file tree 1 file changed +24
-3
lines changed Expand file tree Collapse file tree 1 file changed +24
-3
lines changed Original file line number Diff line number Diff line change 44
44
src : files/apt_periodic
45
45
dest : /etc/apt/apt.conf.d/10periodic
46
46
47
- - name : Install psycopg2 to enable ansible postgreSQL features
48
- pip :
49
- name : psycopg2-binary
47
+ # Install psycopg2 to enable ansible postgreSQL features
48
+ - name : Installing psycopg2 dependencies
49
+ become : yes
50
+ apt :
51
+ pkg :
52
+ - libpq-dev
53
+
54
+ - name : Cloning psycopg2
55
+ git :
56
+ repo : https://github.com/psycopg/psycopg2.git
57
+ dest : /tmp/psycopg2
58
+ version : " 2_8_6"
59
+ become : yes
60
+
61
+ - name : psycopg2 - build
62
+ shell :
63
+ cmd : python setup.py build
64
+ chdir : /tmp/psycopg2
65
+
66
+ - name : psycopg2 - install
67
+ shell :
68
+ cmd : python setup.py install
69
+ chdir : /tmp/psycopg2
70
+ become : yes
50
71
51
72
- name : System - Create services.slice
52
73
template :
You can’t perform that action at this time.
0 commit comments