<commit_before># Playbook Server

This is a simple http server that runs ansible-playbooks
Its based on Play framework

## Running
Run as a normal Play app or as a docker image:

> sbt run

or

> sbt start

### Docker instructions

> sbt docker:publishLocal
>
> docker run -d -v [path-to-playbooks]:/playbooks playbookserver

## Accessing

Use http POST to http://playbookserver/inventory-file/playbook-file

Where inventory-file and playbook-file may be relative to the playbook directory.

The data is json encoded extra-vars:

<code>
{ 
    "variable1" : "value",
    "variable1" : "value"
}
</code>

Make sure to use <code>Content-Type:application/json</code>

## Configuration
The following environment variables can be set
  
<table><commit_msg>Fixed error in readme<commit_after># Playbook Server

This is a simple http server that runs ansible-playbooks
Its based on Play framework

## Running
Run as a normal Play app or as a docker image:

> sbt run

or

> sbt start

### Docker instructions

> sbt docker:publishLocal
>
> docker run -d -v [path-to-playbooks]:/playbooks playbookserver

## Accessing

Use http POST to http://playbookserver/inventory-file/playbook-file

Where inventory-file and playbook-file may be relative to the playbook directory.

The data is json encoded extra-vars:

<code>
{ 
    "variable1" : "value",
    "variable2" : "value"
}
</code>

Make sure to use <code>Content-Type:application/json</code>

## Configuration
The following environment variables can be set
  
<table>
{'fraction_non_alphanumeric': 0.0913907284768212, 'fraction_numerical': 0.0026490066225165563, 'mean_word_length': 4.139455782312925, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 23, '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': '2907903', 'n_tokens_mistral': 478, 'n_tokens_neox': 463, 'n_words': 176}