<commit_before>---
- name: Create bin directory
  file: path="/home/ubuntu/bin/" mode=0775 state=directory

- name: Install romana tool
  template: src="../cmd/romana.k8s" dest="/home/ubuntu/bin/romana" mode=0775

- name: Install romana post-install script
  template: src="romana-post-install.sh" dest="/var/tmp/romana-post-install.sh" mode=0755
        
- name: Execute romana post-install script
  shell: /var/tmp/romana-post-install.sh

- name: Create demo directory
  file: path="/home/ubuntu/demo/" mode=0775 state=directory

- name: Install additional tools
  become: true
  become_user: root
  apt: pkg="{{ item }}"
  with_items:
    - tmux
    - pv

- name: Copy files to demo directory
  copy: src="demo/{{ item }}" dest="/home/ubuntu/demo/{{ item }}"
  with_items:
    - demo.sh
    - example-controller.yaml
    - pod-backend.yaml
    - pod-frontend.yaml
    - romana-np-frontend-to-backend.json

- name: Make demo script executable
  file: path="/home/ubuntu/demo/demo.sh" mode=0755<commit_msg>Update task labels. For demo purposes, not romana functionality<commit_after>---
- name: Create bin directory
  file: path="/home/ubuntu/bin/" mode=0775 state=directory

- name: Install romana tool
  template: src="../cmd/romana.k8s" dest="/home/ubuntu/bin/romana" mode=0775

- name: Install romana post-install script
  template: src="romana-post-install.sh" dest="/var/tmp/romana-post-install.sh" mode=0755
        
- name: Execute romana post-install script
  shell: /var/tmp/romana-post-install.sh

- name: Create demo directory
  file: path="/home/ubuntu/demo/" mode=0775 state=directory

- name: Install additional tools (required for demo script)
  become: true
  become_user: root
  apt: pkg="{{ item }}"
  with_items:
    - tmux
    - pv

- name: Copy examples and demo script to demo directory
  copy: src="demo/{{ item }}" dest="/home/ubuntu/demo/{{ item }}"
  with_items:
    - demo.sh
    - example-controller.yaml
    - pod-backend.yaml
    - pod-frontend.yaml
    - romana-np-frontend-to-backend.json

- name: Make demo script executable
  file: path="/home/ubuntu/demo/demo.sh" mode=0755
{'fraction_non_alphanumeric': 0.14028436018957346, 'fraction_numerical': 0.01990521327014218, 'mean_word_length': 3.281947261663286, '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': '7059360', 'n_tokens_mistral': 743, 'n_tokens_neox': 702, 'n_words': 174}