<commit_before>---
# File: playbook.yml
# Type: playbook
# @cli vagrant destroy; vagrant up; rm -rf fetched/*
# @cli ansible-playbook -i vagrant_inventory playbook.yml

- name: Set global facts
  hosts: all
  tags: always
  tasks:
    - set_fact: docker={{ ansible_virtualization_type is defined and ansible_virtualization_type == 'docker' and ansible_virtualization_role == 'guest' }}
    - set_fact: ansible_fetched_base=fetched/{{ group_names[0] | default('') }}/{{ inventory_hostname }}

- name: Ansible bootstrap
  hosts: all
  sudo: yes
  tags: apt_update
  tasks:
    - name: Setup | Update aptitude
      apt: update_cache=yes cache_valid_time=3600

- name: Ansible setup
  hosts: all
  sudo: yes
  roles:
    - role: ansible/setup
      tags: ansible

- name: Fetch facts
  hosts: all
  sudo: yes
  roles:
    - role: ansible/facts
      tags: ansible_facts

- name: Execute playbook
  # connection: fireball
  # accelerate: true
  hosts: all
  sudo: yes
  roles:
    - role: system/docker
      tags: system_docker
    - role: system/boot
      tags: system_boot
    - role: system/sudo
      tags: system_sudo
    - role: system/ssh
      tags: system_ssh
    - role: system/ntp
      tags: system_ntp
    - role: database/beanstalkd
      tags: database_beanstalkd
    - role: database/mysql
      tags: database_mysql
    - role: database/mongodb
      tags: database_mongodb
    - role: database/redis
      tags: database_redis
    - role: web/apache2
      tags: web_apache2<commit_msg>chore(playbook): update playbook tags<commit_after>---
# File: playbook.yml
# Type: playbook
# @cli vagrant destroy; vagrant up; rm -rf fetched/*
# @cli ansible-playbook -i vagrant_inventory playbook.yml

- name: Set global facts
  hosts: all
  tags: always
  tasks:
    - set_fact: docker={{ ansible_virtualization_type is defined and ansible_virtualization_type == 'docker' and ansible_virtualization_role == 'guest' }}
    - set_fact: ansible_fetched_base=fetched/{{ group_names[0] | default('') }}/{{ inventory_hostname }}

- name: Ansible bootstrap
  hosts: all
  sudo: yes
  tags: apt_update
  tasks:
    - name: Setup | Update aptitude
      apt: update_cache=yes cache_valid_time=3600

- name: Ansible setup
  hosts: all
  sudo: yes
  roles:
    - role: ansible/setup
      tags: ansible

- name: Fetch facts
  hosts: all
  sudo: yes
  roles:
    - role: ansible/facts
      tags: ansible_facts

- name: Execute playbook
  # connection: fireball
  # accelerate: true
  hosts: all
  sudo: yes
  roles:
    - role: system/docker
      tags: system_docker
    - role: system/boot
      tags: system_boot
    - role: system/sudo
      tags: system_sudo
    - role: system/ssh
      tags: system_ssh
    - role: system/ntp
      tags: system_ntp
    - role: system/fail2ban
      tags: system_fail2ban
    - role: system/clamav
      tags: system_clamav
    - role: database/beanstalkd
      tags: database_beanstalkd
    - role: database/mysql
      tags: database_mysql
    - role: database/mongodb
      tags: database_mongodb
    - role: database/redis
      tags: database_redis
    - role: web/apache2
      tags: web_apache2
{'fraction_non_alphanumeric': 0.0940688775510204, 'fraction_numerical': 0.00510204081632653, 'mean_word_length': 2.834963325183374, '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': '6457715', 'n_tokens_mistral': 1090, 'n_tokens_neox': 1045, 'n_words': 282}