Added copying of sample-data to db vm
This commit is contained in:
parent
b465413d42
commit
790e83b8fb
@ -44,12 +44,15 @@
|
|||||||
columns:
|
columns:
|
||||||
- id bigserial primary key
|
- id bigserial primary key
|
||||||
- content text
|
- content text
|
||||||
# TODO: Figure out what would be the correct `copy_from`
|
- name: Copy over dummy-data for `test`.`message`
|
||||||
|
copy:
|
||||||
|
src: "{{ role_path }}/files/sample.csv"
|
||||||
|
dest: /tmp/sample.csv
|
||||||
- name: Insert sample data into `test`.`message`
|
- name: Insert sample data into `test`.`message`
|
||||||
become_user: postgres
|
become_user: postgres
|
||||||
become: yes
|
become: yes
|
||||||
community.postgresql.postgresql_copy:
|
community.postgresql.postgresql_copy:
|
||||||
copy_from: sample.csv
|
copy_from: /tmp/sample.csv
|
||||||
db: test
|
db: test
|
||||||
dst: message
|
dst: message
|
||||||
columns: content
|
columns: content
|
||||||
@ -66,3 +69,4 @@
|
|||||||
name: postgresql
|
name: postgresql
|
||||||
state: restarted
|
state: restarted
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
become: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user