<commit_before>#!/bin/bash
# Runs system wide ansible configured in /etc
set -eu

. /etc/default/system-ansible

if [[ -z "${SYS_ANSIBLE_SERIALIZED:-}" ]] ; then
    export SYS_ANSIBLE_SERIALIZED=1
    exec run-one $0 "$@"
fi

set +u
. /opt/ansible/bin/activate
set -u

logtag=$(basename $SYS_ANSIBLE_PLAYBOOK)_$(date +%Y%m%m%H%M%S)

cd $SYS_ANSIBLE_ROOT
git pull
ansible-galaxy install -r requirements.txt
ansible-playbook -i $SYS_ANSIBLE_INVENTORY $SYS_ANSIBLE_PLAYBOOK >> /var/www/html/cron-logs/ansible_$logtag.log 2>&1<commit_msg>Install galaxy roles from requirements.yml<commit_after>#!/bin/bash
# Runs system wide ansible configured in /etc
set -eu

. /etc/default/system-ansible

if [[ -z "${SYS_ANSIBLE_SERIALIZED:-}" ]] ; then
    export SYS_ANSIBLE_SERIALIZED=1
    exec run-one $0 "$@"
fi

set +u
. /opt/ansible/bin/activate
set -u

logtag=$(basename $SYS_ANSIBLE_PLAYBOOK)_$(date +%Y%m%m%H%M%S)

cd $SYS_ANSIBLE_ROOT
git pull
ansible-galaxy install -r requirements.yml
ansible-playbook -i $SYS_ANSIBLE_INVENTORY $SYS_ANSIBLE_PLAYBOOK >> /var/www/html/cron-logs/ansible_$logtag.log 2>&1
{'fraction_non_alphanumeric': 0.1410373066424022, 'fraction_numerical': 0.007279344858962694, 'mean_word_length': 4.729166666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5213958', 'n_tokens_mistral': 479, 'n_tokens_neox': 442, 'n_words': 89}