<commit_before>---
- name: include additional variables
  include_vars: ../../irods_vars.yml

- name: upgrade all packages
  apt: update_cache=yes

- name: install required packages
  apt: pkg={{ item }} state=latest
  with_items: 
  - expect
  - python-psycopg2 

- name: download irods server package
  get_url: url={{ irods_server_pkg_url }} dest=/tmp
  register: server_pkg

- debug: var=server_pkg.dest

- name: download irods postgres plugin package
  get_url: url={{ irods_postgres_plugin_pkg_url }} dest=/tmp
  register: db_plugin_pkg

- debug: var=db_plugin_pkg.dest<commit_msg>added test DB connection task<commit_after>---
- name: include additional variables
  include_vars: ../../irods_vars.yml

- name: upgrade all packages
  apt: update_cache=yes

- name: install required packages
  apt: pkg={{ item }} state=latest
  with_items: 
  - expect
  - python-psycopg2 

- name: test remote database connection
  postgresql_db: 
    name: "{{ irods_db_name }}"
    port: "{{ irods_db_port }}"
    login_host: "{{ irods_db_hostname }}"
    login_user: "{{ irods_db_user }}"
    login_password: "{{ <PASSWORD> }}"
    state: present

- name: download irods server package
  get_url: url={{ irods_server_pkg_url }} dest=/tmp
  register: server_pkg

- debug: var=server_pkg.dest

- name: download irods postgres plugin package
  get_url: url={{ irods_postgres_plugin_pkg_url }} dest=/tmp
  register: db_plugin_pkg

- debug: var=db_plugin_pkg.dest
{'fraction_non_alphanumeric': 0.11509303928325293, 'fraction_numerical': 0.0013783597518952446, 'mean_word_length': 3.9896907216494846, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4613442', 'n_tokens_mistral': 510, 'n_tokens_neox': 501, 'n_words': 123}