This commit is contained in:
root
2023-12-19 13:48:06 +01:00
parent 8ea55ac5e2
commit aac485401b
8 changed files with 54 additions and 26 deletions

View File

@@ -7,18 +7,30 @@
<div class="card-body">
<form id="ansibleForm">
<label for="playbook">Playbook <span style="color:red"></span></label>
<label for="playbook">Playbook <sup style="color:red"></sup></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>
<!-- -->
<div class="row">
<div class="col">
<label for="hosts">Hosts</label>
<input type="text" name="hosts" class="form-control" placeholder="/path/to/inventory">
<div class="notes">If empty will use default settings.</div>
</div>
<div class="col">
<label for="argument">Arguments</label>
<input type="text" name="argument" class="form-control" placeholder="-e "><br>
<input type="text" name="argument" class="form-control" placeholder="-e ">
</div>
<div class="col">
<label for="limitation">Limitation</label>
<input type="text" name="limitation" class="form-control" placeholder="-l "><br>
<input type="text" name="limitation" class="form-control" placeholder="-l ">
<div class="notes">Separate your servers with coma (example: localhost,server1...).</div>
</div>
</div>
<br>
<button type="button" class="btn btn-info" onclick="submitForm()">Run</button>
</form>