2023-12-19 13:23:33 +00:00
|
|
|
# Ansinterface
|
|
|
|
|
|
|
|
# Install
|
|
|
|
## Requirement
|
|
|
|
|
|
|
|
- You will need of course an ansible server configured,
|
|
|
|
- Flask
|
|
|
|
- Flask socketio
|
|
|
|
|
|
|
|
If you use pip3 you can run :
|
|
|
|
|
2023-12-19 13:26:18 +00:00
|
|
|
> pip3 install -U Flask flask-socketio
|
2023-12-19 13:23:33 +00:00
|
|
|
|
|
|
|
or using your paquet manager (for example on Debian > 11
|
|
|
|
|
2023-12-19 13:26:18 +00:00
|
|
|
> apt-get install python3-flask-socketio python3-flask
|
2023-12-19 13:23:33 +00:00
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
|
|
|
In **config.py**
|
|
|
|
|
|
|
|
Fill the info :
|
|
|
|
- ansible_scripts : path of your playbooks folder
|
|
|
|
- default_hosts: default hosts file path
|
|
|
|
- binary : ansible binary path (use "whereis ansible-playbook" to find it)
|
|
|
|
|
|
|
|
# Run
|
|
|
|
|
|
|
|
python3 app.py
|
|
|
|
|
|
|
|
and go to http://your_ip:your_port
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|