Added copying of sample-data to db vm
This commit is contained in:
parent
b465413d42
commit
790e83b8fb
@ -44,12 +44,15 @@
|
||||
columns:
|
||||
- id bigserial primary key
|
||||
- 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`
|
||||
become_user: postgres
|
||||
become: yes
|
||||
community.postgresql.postgresql_copy:
|
||||
copy_from: sample.csv
|
||||
copy_from: /tmp/sample.csv
|
||||
db: test
|
||||
dst: message
|
||||
columns: content
|
||||
@ -66,3 +69,4 @@
|
||||
name: postgresql
|
||||
state: restarted
|
||||
enabled: yes
|
||||
become: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user