Skip to content

Commit

Permalink
IQSS#179 Leonid added a --non-interactive switch
Browse files Browse the repository at this point in the history
  • Loading branch information
don.sizemore committed Nov 30, 2021
1 parent 39a25b2 commit 0014df3
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions tasks/postgresql_perl_party.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,15 @@
name: perl
state: latest

# use our modified count.pl for now
# use Leonid's branch until merged into develop
- name: "place Leonid's PERL scripts"
ansible.builtin.get_url:
url: '{{ item }}'
dest: '/var/lib/pgsql/{{ db.postgres.version }}/data/log/'
mode: '0755'
loop:
- https://raw.githubusercontent.com/IQSS/dataverse/query-counting-script/scripts/database/querycount/parse.pl

- name: use our modified count.pl for now
copy:
src: count.pl
dest: '/var/lib/pgsql/{{ db.postgres.version }}/data/log/count.pl'
owner: root
group: root
mode: 0755
- https://raw.githubusercontent.com/IQSS/dataverse/query-counting-script/scripts/database/querycount/count.pl

- name: get name of Postgres logfile
ansible.builtin.find:
Expand All @@ -35,5 +28,5 @@

- name: fire at will
ansible.builtin.shell:
cmd: '/usr/bin/perl count.pl {{ postgres_log[0] }} > /tmp/query_count.out'
cmd: '/usr/bin/perl count.pl --non-interactive {{ postgres_log[0] }} > /tmp/query_count.out'
chdir: '/var/lib/pgsql/{{ db.postgres.version }}/data/log/'

0 comments on commit 0014df3

Please sign in to comment.