<commit_before>---
- name: install dev libraries for NPM installs
  apt: pkg={{ item }} state=installed
  with_items:
    - libkrb5-dev
    - unzip
  sudo: yes

- name: Get RackHD from source
  git: repo=https://github.com/rackhd/rackhd
       dest="{{ ansible_env.HOME }}/src"
       accept_hostkey=true
       version="{{ branch | default('master') }}"

- name: Update git repos with latest
  shell: git fetch --all --prune
  args:
    chdir: "{{ ansible_env.HOME }}/src/{{ item }}"
  with_items:
    - on-core
    - on-tasks
    - on-http
    - on-tftp
    - on-dhcp-proxy
    - on-taskgraph
    - on-syslog
    - on-wss
    - on-tools
    - on-imagebuilder

- name: Reset to the branch specified
  shell: git reset --hard {{ branch }}
  when: branch is defined
  args:
    chdir: "{{ ansible_env.HOME }}/src/{{ item }}"
  with_items:
    - on-core
    - on-tasks
    - on-http
    - on-tftp
    - on-dhcp-proxy
    - on-taskgraph
    - on-syslog
    - on-wss
    - on-tools
    - on-imagebuilder

- name: Npm install Repos
  npm: path="{{ ansible_env.HOME }}/src/{{ item }}"
       production=yes
  with_items:
    - on-syslog
    - on-tftp
    - on-dhcp-proxy
    - on-taskgraph
    - on-http
    - on-wss

- name: Make common static directory
  file: path="{{ ansible_env.HOME }}/src/on-http/static/http/common" state=directory

- name: Npm install apidoc
  shell: "npm install apidoc"
  args:
    chdir: "{{ ansible_env.HOME }}/src/on-http"

- name: Render 1.1 API docs for local reference
  shell: "npm run apidoc"
  args:
    chdir: "{{ ansible_env.HOME }}/src/on-http"

- name: Generate hosted task documentation
  shell: "npm run taskdoc"
  args:
    chdir: "{{ ansible_env.HOME }}/src/on-http"

- name: set HTTP static directory for RackHD
  set_fact: http_static_directory="{{ ansible_env.HOME }}/src/on-http/static/http"

- name: set TFTP static directory for RackHD
  set_fact: tftp_static_directory="{{ ansible_env.HOME }}/src/on-tftp/static/tftp"<commit_msg>removing 1.1 api doc generation in ansible script<commit_after>---
- name: install dev libraries for NPM installs
  apt: pkg={{ item }} state=installed
  with_items:
    - libkrb5-dev
    - unzip
  sudo: yes

- name: Get RackHD from source
  git: repo=https://github.com/rackhd/rackhd
       dest="{{ ansible_env.HOME }}/src"
       accept_hostkey=true
       version="{{ branch | default('master') }}"

- name: Update git repos with latest
  shell: git fetch --all --prune
  args:
    chdir: "{{ ansible_env.HOME }}/src/{{ item }}"
  with_items:
    - on-core
    - on-tasks
    - on-http
    - on-tftp
    - on-dhcp-proxy
    - on-taskgraph
    - on-syslog
    - on-wss
    - on-tools
    - on-imagebuilder

- name: Reset to the branch specified
  shell: git reset --hard {{ branch }}
  when: branch is defined
  args:
    chdir: "{{ ansible_env.HOME }}/src/{{ item }}"
  with_items:
    - on-core
    - on-tasks
    - on-http
    - on-tftp
    - on-dhcp-proxy
    - on-taskgraph
    - on-syslog
    - on-wss
    - on-tools
    - on-imagebuilder

- name: Npm install Repos
  npm: path="{{ ansible_env.HOME }}/src/{{ item }}"
       production=yes
  with_items:
    - on-syslog
    - on-tftp
    - on-dhcp-proxy
    - on-taskgraph
    - on-http
    - on-wss

- name: Make common static directory
  file: path="{{ ansible_env.HOME }}/src/on-http/static/http/common" state=directory

- name: Npm install apidoc
  shell: "npm install apidoc"
  args:
    chdir: "{{ ansible_env.HOME }}/src/on-http"

- name: Generate hosted task documentation
  shell: "npm run taskdoc"
  args:
    chdir: "{{ ansible_env.HOME }}/src/on-http"

- name: set HTTP static directory for RackHD
  set_fact: http_static_directory="{{ ansible_env.HOME }}/src/on-http/static/http"

- name: set TFTP static directory for RackHD
  set_fact: tftp_static_directory="{{ ansible_env.HOME }}/src/on-tftp/static/tftp"
{'fraction_non_alphanumeric': 0.13929961089494164, 'fraction_numerical': 0.0015564202334630351, 'mean_word_length': 2.4551971326164876, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2004860', 'n_tokens_mistral': 1434, 'n_tokens_neox': 1402, 'n_words': 348}