Ansinterface/templates/arch/run.html.ok

24 lines
656 B
Plaintext
Raw Normal View History

2023-12-19 10:32:13 +00:00
<!-- 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>