<commit_before>---
# This role will upgrade 0.3pre instances to 0.3 instances.
# It will copy and run the upgrade.py script on the app and monitor servers.
- name: stop the apache service prior to upgrade tasks
  service: name=apache2 status=stopped

- name: copy upgrade script to servers
  copy: src="0.3pre_upgrade.py" dest="/tmp" owner="root" mode="740"
  sudo: yes

- name: run the upgrade script
  shell: "/tmp/0.3pre_upgrade.py {{ server_role }}"
  sudo: yes

- name: remove old 0.3 packages to avoid version error
  apt: name={{ item }} state=absent
  with_items:
    - securedrop-app-code
    - securedrop-grsec
    - securedrop-ossec-agent
    - securedrop-ossec-server

- name: remove the previous signing key
  apt_key: id=BD67D096 state=absent<commit_msg>changed the service role from old `status` format to `state` format for new versions of ansible.<commit_after>---
# This role will upgrade 0.3pre instances to 0.3 instances.
# It will copy and run the upgrade.py script on the app and monitor servers.
- name: stop the apache service prior to upgrade tasks
  service: name=apache2 state=stopped

- name: copy upgrade script to servers
  copy: src="0.3pre_upgrade.py" dest="/tmp" owner="root" mode="740"
  sudo: yes

- name: run the upgrade script
  shell: "/tmp/0.3pre_upgrade.py {{ server_role }}"
  sudo: yes

- name: remove old 0.3 packages to avoid version error
  apt: name={{ item }} state=absent
  with_items:
    - securedrop-app-code
    - securedrop-grsec
    - securedrop-ossec-agent
    - securedrop-ossec-server

- name: remove the previous signing key
  apt_key: id=BD67D096 state=absent
{'fraction_non_alphanumeric': 0.09950556242274412, 'fraction_numerical': 0.023485784919653894, 'mean_word_length': 3.6125356125356127, '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': '5936037', 'n_tokens_mistral': 531, 'n_tokens_neox': 506, 'n_words': 186}