Interface to run and manage playbooks for ansible purpose
 
 
 
Go to file
root 4dfe320a5f README update 2023-12-19 14:32:53 +01:00
__pycache__ Refonte 2023-12-19 13:48:06 +01:00
static Refonte 2023-12-19 13:48:06 +01:00
templates Refonte 2023-12-19 13:48:06 +01:00
README.md README update 2023-12-19 14:32:53 +01:00
app.py Refonte 2023-12-19 13:48:06 +01:00
config.py Refonte 2023-12-19 13:48:06 +01:00

README.md

Ansinterface

Install

Requirement

  • You will need of course an ansible server configured,
  • Flask
  • Flask socketio

If you use pip3 you can run :

pip3 install -U Flask flask-socketio

or using your paquet manager (for example on Debian > 11

apt-get install python3-flask-socketio python3-flask

Configuration

In config.py

Fill the info :

  • ansible_scripts : path of your playbooks folder

Example : /etc/ansible/playbooks/

  • default_hosts: default hosts file path

Example : /etc/ansible/hosts

  • binary : ansible binary path (use "whereis ansible-playbook" to find it)

Example : /usr/bin/ansible-playbook

Run

python3 app.py

and go to http://your_ip:your_port