Ansinterface/README.md

39 lines
708 B
Markdown
Raw Permalink Normal View History

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
2023-12-19 13:32:53 +00:00
> Example : /etc/ansible/playbooks/
2023-12-19 13:23:33 +00:00
- default_hosts: default hosts file path
2023-12-19 13:32:53 +00:00
> Example : /etc/ansible/hosts
2023-12-19 13:23:33 +00:00
- binary : ansible binary path (use "whereis ansible-playbook" to find it)
2023-12-19 13:32:53 +00:00
> Example : /usr/bin/ansible-playbook
2023-12-19 13:23:33 +00:00
# Run
2023-12-19 13:32:53 +00:00
> python3 app.py
2023-12-19 13:23:33 +00:00
and go to http://your_ip:your_port