added command with user-passwd
This commit is contained in:
parent
1c54419b10
commit
edad05dc77
1 changed files with 1 additions and 0 deletions
|
|
@ -76,6 +76,7 @@ def verify_password(username, password):
|
|||
|
||||
|
||||
# curl -u <user>:<pass> -d "playbook=ping_workers&args=hosts=workers" -v http://localhost:5010/api/v1.0/run_ansible
|
||||
# curl -u <user>:<pass> -d "playbook=ping_workers&args=hosts=workers ansible_user=myuser ansible_password=yourpassword" -v http://localhost:5010/api/v1.0/run_ansible
|
||||
@app.route("/api/v1.0/run_ansible", methods=["POST"])
|
||||
@auth.login_required
|
||||
def run_ansible():
|
||||
|
|
|
|||
Loading…
Reference in a new issue