24 lines
656 B
Plaintext
24 lines
656 B
Plaintext
|
<!-- templates/run.html -->
|
||
|
|
||
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title>Ansible Output</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="output"></div>
|
||
|
|
||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.1.1/socket.io.js"></script>
|
||
|
<script>
|
||
|
var socket = io.connect('http://' + document.domain + ':' + location.port);
|
||
|
|
||
|
socket.on('ansible_output', function(data) {
|
||
|
var outputDiv = document.getElementById('output');
|
||
|
outputDiv.innerHTML += data.data + '<br>';
|
||
|
});
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|