msaladna | https://api.ara.apiscp.com/files/355.html it's `systemctl reboot` underneath, which doesn't give Ansible time to exit gracefully. I can add meta: end_host, but this is one of those edge cases where it'd be nice to have the ability to append to an incomplete/in-progress playbook by ID | 00:03 |
---|---|---|
dmsimard | msaladna: yeah, I understand the use case and I think we can do it. Could you create an issue on github ? | 01:21 |
dmsimard | around the bits you linked, there could be an "if" to check if we have a playbook variable, if so do a get on that one instead of doing a post | 01:23 |
msaladna | Yes, that'd be perfect. I'll get on it later tonight. | 01:59 |
msaladna | By the way, I love where this project is heading. I was searching last year for a solution to track E2E testing in these playbooks, but nothing that was really made for Ansible. Down the road it'd be cool to perform diffs from the UI on changed tasks to get a better understanding of what might've changed between plays. This can be done through the CLI now | 02:02 |
dmsimard | there is a lot of potential in the UI, I've been mostly putting the pieces in place and demonstrating different features but someone with actual frontend skills could have fun :p | 02:08 |
msaladna | You can't easily fix a backend once things mature :P | 02:11 |
dmsimard | been there done that, 1.x is on top of django while 0.x is (was?) on top of flask | 02:12 |
dmsimard | many lessons were learned | 02:12 |
msaladna | Speaking of UI, I'm on master and running into problems with what I presume React from source on Passenger/Node 14. I know this is a bit outside the prescribed Docker environment, but have any pointers where to look? https://ara.apiscp.com/playbooks/17 | 02:14 |
dmsimard | msaladna: ara-web is broken :( | 02:14 |
dmsimard | explained this to another user recently: https://github.com/ansible-community/ara/issues/190 | 02:14 |
dmsimard | even if it wouldn't be broken, it's not at feature parity with the built-in UI so I can't recommend it for now | 02:15 |
msaladna | perfect, works for me | 02:15 |
*** etienne has quit IRC | 02:51 | |
*** dericcrago has quit IRC | 04:25 | |
*** dericcrago has joined #ara | 04:26 | |
*** evrardjp has quit IRC | 05:47 | |
*** evrardjp has joined #ara | 05:48 | |
*** TKersten has joined #ara | 06:28 | |
*** ccamacho has joined #ara | 11:25 | |
ccamacho | hi folks! quick question, im running several ansible playbooks and doing this: | 11:28 |
ccamacho | https://github.com/ansible-community/ara#recording-playbooks-without-an-api-server | 11:28 |
ccamacho | Is there a way to have this view https://github.com/ansible-community/ara/blob/master/doc/source/_static/ui-playbook-details.png | 11:28 |
ccamacho | from my recently executed playbook as a single HTML file? | 11:28 |
ccamacho | something similar to what I do with pytest-html | 11:29 |
ccamacho | if you open the docs | 11:31 |
ccamacho | https://ara.readthedocs.io/en/latest/usage.html#generating-a-static-html-version-of-the-web-application | 11:31 |
ccamacho | the link is broken | 11:31 |
ccamacho | but I think it can be done with ara-manage generate | 11:32 |
ccamacho | what I dont understand if its possible to render a single html file and not a folder with all the multiple files, any hint sshnaidm ^ | 11:58 |
sshnaidm | ccamacho, in previous versions it was "ara generate html", but not sure what is now.. | 12:07 |
ccamacho | sshnaidm: yup and now is ara-manage generate, do you know if its possible or if it was, to render a single html instead of a folder with all the content? | 12:09 |
ccamacho | thanks! | 12:09 |
sshnaidm | ccamacho, I know it was possible because we did it in CI, but afaik now it's not, need a server, let dmsimard to confirm | 12:10 |
dmsimard | ccamacho, sshnaidm: o/ I'm not fully awake yet | 12:20 |
ccamacho | :) | 12:20 |
ccamacho | jaaj | 12:20 |
ccamacho | no worries :) | 12:20 |
dmsimard | there's no particular support for rendering to a single page | 12:20 |
dmsimard | we could argue it could exist but then you'd also lose a bunch of context | 12:21 |
dmsimard | you would not be able to view result details, no files, no search, no sorting | 12:21 |
dmsimard | what's your use case ? | 12:22 |
ccamacho | dmsimard: ack the reasoning for that is that im pushing to gist some pytest html files and I wanted to see if it was possible to do the same for ara | 12:22 |
ccamacho | because they are single files | 12:22 |
ccamacho | but ill try to cdn it | 12:22 |
dmsimard | would a single file be useful, though ? you would have the name of the tasks, the hosts thst ran it and the status but that's it basically | 12:24 |
dmsimard | if you wanted more info, say the output of the task, on the same page, that'd be a different html template than the one built into the webapp | 12:24 |
ccamacho | dmsimard: yeah xD I wanted the whole thing, but is not an issue Ill just put into a cdn the folder | 12:26 |
dmsimard | right now this is where the generation happens: https://github.com/ansible-community/ara/blob/master/ara/ui/management/commands/generate.py | 12:26 |
dmsimard | so you could have something similar that uses a different template | 12:26 |
ccamacho | hmm ill lurk into the code | 12:27 |
ccamacho | thanks!! | 12:27 |
dmsimard | that implementation uses django database bindings because it predates the new CLI implementation which relies on the api like this: https://github.com/ansible-community/ara/blob/1b848c7c3617f7163a64113d4e2e0c76230a3e19/ara/cli/playbook.py#L18 | 12:27 |
dmsimard | there's an issue to migrate it to the new cli, haven't gotten around to it | 12:28 |
*** sshnaidm is now known as sshnaidm|afk | 13:56 | |
*** sshnaidm|afk is now known as sshnaidm | 14:34 | |
*** etienne has joined #ara | 14:35 | |
*** e-tienne has joined #ara | 15:32 | |
*** etienne has quit IRC | 15:32 | |
*** irclogbot_0 has quit IRC | 16:41 | |
*** irclogbot_3 has joined #ara | 16:45 | |
*** TKersten has left #ara | 16:56 | |
*** TKersten has joined #ara | 17:07 | |
*** TKersten has left #ara | 17:07 | |
*** e-tienne has quit IRC | 18:13 | |
*** sshnaidm has quit IRC | 18:23 | |
*** sshnaidm has joined #ara | 18:24 | |
*** sshnaidm has quit IRC | 18:28 | |
*** sshnaidm has joined #ara | 18:28 | |
ara-slack | g_sav: @g_sav has joined the channel | 20:44 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!