<commit_before>---

# Set up Wraith smoke testing for various environments.
# Expects a variable named "instances" containing list of objects.  Example:
#
# instances:
#   - name: "{{ vagrant_hostname }}"
#     # one of "local", "dev", "stage", "prod"
#     env: local
#     uri: "http://{{ vagrant_hostname }}"
#
#   - name: example.com
#     # one of "local", "dev", "stage", "prod"
#     env: prod
#     uri: http://example.com
#
# See config.yml for more information.

- name: Install Wraith repo SSH key.
  copy:
    backup: Yes
    mode: 0400
    src: "{{ wraith_testing_framework.ssh_key }}"
    dest: ~/.ssh/wraith-deploy
  become: no
  when: wraith_testing_framework.install | default(False) and wraith_testing_framework.ssh_key is defined

- name: Clone wraith project directory
  git:
    repo: "{{ wraith_testing_framework.repo }}"
    dest: "{{ wraith_testing_framework.install_dir }}"
    accept_hostkey: True
    ssh_opts: "{{ '-i /home/vagrant/.ssh/wraith-deploy' if wraith_testing_framework.ssh_key is defined else omit }}"
  become: no
  when: wraith_testing_framework.install | default(False) and wraith_testing_framework.repo is defined

- name: Create blank Wraith shared config.
  command: "cp example.smoke.common.yml smoke.common.yml"
  args:
    chdir: "{{ wraith_testing_framework.install_dir }}/configs"<commit_msg>feat(wraith): remove private SSH key copy<commit_after>---

# Set up Wraith smoke testing for various environments.
# Expects a variable named "instances" containing list of objects.  Example:
#
# instances:
#   - name: "{{ vagrant_hostname }}"
#     # one of "local", "dev", "stage", "prod"
#     env: local
#     uri: "http://{{ vagrant_hostname }}"
#
#   - name: example.com
#     # one of "local", "dev", "stage", "prod"
#     env: prod
#     uri: http://example.com
#
# See config.yml for more information.

- name: Clone wraith project directory
  git:
    repo: "{{ wraith_testing_framework.repo }}"
    dest: "{{ wraith_testing_framework.install_dir }}"
    accept_hostkey: True
  become: no
  when: wraith_testing_framework.install | default(False) and wraith_testing_framework.repo is defined

- name: Create blank Wraith shared config.
  command: "cp example.smoke.common.yml smoke.common.yml"
  args:
    chdir: "{{ wraith_testing_framework.install_dir }}/configs"
{'fraction_non_alphanumeric': 0.13157894736842105, 'fraction_numerical': 0.001725625539257981, 'mean_word_length': 3.7230142566191446, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6604758', 'n_tokens_mistral': 797, 'n_tokens_neox': 767, 'n_words': 207}