- name: Insert data into PostgreSQL database community.postgresql.postgresql_query: db: '{{ postgres_db }}' query: | INSERT INTO contacts (name, phone_number) VALUES ('dima', '123123123'), ('vlad', '8800525252'), ('denis', '77777777') ON CONFLICT (phone_number) DO NOTHING; login_user: '{{ postgres_user }}' login_password: '{{ postgres_password }}'