49 lines
2.0 KiB
HTML
49 lines
2.0 KiB
HTML
{% extends 'base.html' %}
|
|
{% block content %}
|
|
<div class="card">
|
|
<div class="card-header">
|
|
Select Playbook and arguments
|
|
</div>
|
|
<div class="card-body">
|
|
<form id="ansibleForm">
|
|
|
|
<label for="playbook">Playbook <span style="color:red">★</span></label>
|
|
<select id="playbook" class="form-control" name="playbook" placeholder="Profile" required>
|
|
{%for file in list %}
|
|
<option value={{ file }}>{{ file }}</option>
|
|
{%endfor%}
|
|
</select>
|
|
<label for="hosts">Hosts:</label>
|
|
<input type="text" name="hosts" class="form-control" placeholder="/path/to/inventory">
|
|
<label for="argument">Arguments</label>
|
|
<input type="text" name="argument" class="form-control" placeholder="-e "><br>
|
|
<label for="limitation">Limitation</label>
|
|
<input type="text" name="limitation" class="form-control" placeholder="-l "><br>
|
|
<br>
|
|
<button type="button" class="btn btn-info" onclick="submitForm()">Run</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
<div class="card">
|
|
<div class="card-header">
|
|
Select Playbook to edit:
|
|
</div>
|
|
<div class="card-body">
|
|
<form id="fileedit" action="/edit" method="post">
|
|
|
|
<label for="playbook">Playbook:</label>
|
|
<select id="playbook" class="form-control" name="file_edit" placeholder="Profile" required>
|
|
{%for file in list %}
|
|
<option value={{ file }}>{{ file }}</option>
|
|
{%endfor%}
|
|
</select>
|
|
<br>
|
|
<button type="submit" class="btn btn-info">Edit</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{% endblock %}
|