<commit_before>---
- name: Install dependencies
  xbps: name={{ item }} state=present
  with_items:
  - ruby
  - ruby-devel
  - nodejs
  - base-devel
  - git

- name: Install firewall rules
  copy: src=jekyll.rules dest=/etc/iptables.d/jekyll.rules owner=root group=root mode=0640
  notify:
  - iptables

- name: Install Jekyll
  gem: name={{ item }} state=present user_install=no
  with_items:
    - jekyll
    - jekyll-paginate

- name: Get Site Files
  git: clone=yes depth=1 force=yes dest=/tmp/cv_jekyll repo=https://github.com/collegiumv/cv_jekyll.git

- name: Create Jekyll site folder
  file: path=/var/www/home state=directory owner=root group=nginx mode=0755

- name: Build CV Site
  command: jekyll build --destination=/var/www/home/ chdir=/tmp/cv_jekyll

- name: Fix CV Site permissions
  file: path=/var/www/home owner=root group=nginx recurse=yes

- name: Copy CV Site descriptor<commit_msg>Set correct mode on jekyll_site<commit_after>---
- name: Install dependencies
  xbps: name={{ item }} state=present
  with_items:
  - ruby
  - ruby-devel
  - nodejs
  - base-devel
  - git

- name: Install firewall rules
  copy: src=jekyll.rules dest=/etc/iptables.d/jekyll.rules owner=root group=root mode=0640
  notify:
  - iptables

- name: Install Jekyll
  gem: name={{ item }} state=present user_install=no
  with_items:
    - jekyll
    - jekyll-paginate

- name: Get Site Files
  git: clone=yes depth=1 force=yes dest=/tmp/cv_jekyll repo=https://github.com/collegiumv/cv_jekyll.git

- name: Create Jekyll site folder
  file: path=/var/www/home state=directory owner=root group=nginx mode=0755

- name: Build CV Site
  command: jekyll build --destination=/var/www/home/ chdir=/tmp/cv_jekyll

- name: Fix CV Site permissions
  file: path=/var/www/home owner=root group=nginx mode=go+rX recurse=yes

- name: Copy CV Site descriptor
{'fraction_non_alphanumeric': 0.11636759108210984, 'fraction_numerical': 0.009787928221859706, 'mean_word_length': 3.6231155778894473, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 6, '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': '906359', 'n_tokens_mistral': 673, 'n_tokens_neox': 644, 'n_words': 168}