<commit_before>- include: ../../common/tasks/setfacts.yml

- name: ensure target directories exist [data subdirectories etc.]
  file: path={{item}} state=directory owner={{tomcat_user}} group={{tomcat_user}}
  with_items:
    - "{{data_dir}}/pigeonhole/config"

- name: copy all config.properties
  template: src=pigeonhole-config.properties dest={{data_dir}}/pigeonhole/config/pigeonhole-config.properties

- name: set data ownership
  file: path={{data_dir}}/pigeonhole owner={{tomcat_user}} group={{tomcat_user}} recurse=true
  notify: 
    - restart tomcat

- name: download from maven repo
  get_url: url={{ pigeonhole_war_url }} dest="{{tomcat_dir}}/webapps/pigeonhole.war"
  notify:
    - restart tomcat<commit_msg>Updates pigeonhole to use consistent structure<commit_after>- include: ../../common/tasks/setfacts.yml
  tags:
    - pigeonhole

- name: ensure target directories exist [data subdirectories etc.]
  file: path={{item}} state=directory owner={{tomcat_user}} group={{tomcat_user}}
  with_items:
    - "{{data_dir}}/pigeonhole/config"
  tags:
    - pigeonhole
    - properties

- name: copy all config.properties
  template: src=pigeonhole-config.properties dest={{data_dir}}/pigeonhole/config/pigeonhole-config.properties
  tags:
    - pigeonhole
    - properties

- name: set data ownership
  file: path={{data_dir}}/pigeonhole owner={{tomcat_user}} group={{tomcat_user}} recurse=true
  notify: 
    - restart tomcat
  tags:
    - pigeonhole
    - properties

- include: ../../apache_vhost/tasks/main.yml context_path='{{ pigeonhole_context_path }}' hostname='{{ pigeonhole_hostname }}'
  tags:
    - pigeonhole
    - apache_vhost
    - deploy

- include: ../../tomcat_deploy/tasks/main.yml war_url='{{ pigeonhole_war_url }}' context_path='{{ pigeonhole_context_path }}' hostname='{{ pigeonhole_hostname }}'
  tags:
    - pigeonhole
    - tomcat_vhost
    - deploy
{'fraction_non_alphanumeric': 0.14118895966029724, 'fraction_numerical': 0.0, 'mean_word_length': 4.136239782016348, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '917336', 'n_tokens_mistral': 645, 'n_tokens_neox': 623, 'n_words': 123}