Wednesday, 2020-11-25

msaladnahttps://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 ID00:03
dmsimardmsaladna: yeah, I understand the use case and I think we can do it. Could you create an issue on github ?01:21
dmsimardaround 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 post01:23
msaladnaYes, that'd be perfect. I'll get on it later tonight.01:59
msaladnaBy 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 now02:02
dmsimardthere 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 :p02:08
msaladnaYou can't easily fix a backend once things mature :P02:11
dmsimardbeen there done that, 1.x is on top of django while 0.x is (was?) on top of flask02:12
dmsimardmany lessons were learned02:12
msaladnaSpeaking 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/1702:14
dmsimardmsaladna: ara-web is broken :(02:14
dmsimardexplained this to another user recently: https://github.com/ansible-community/ara/issues/19002:14
dmsimardeven if it wouldn't be broken, it's not at feature parity with the built-in UI so I can't recommend it for now02:15
msaladnaperfect, works for me02:15
*** etienne has quit IRC02:51
*** dericcrago has quit IRC04:25
*** dericcrago has joined #ara04:26
*** evrardjp has quit IRC05:47
*** evrardjp has joined #ara05:48
*** TKersten has joined #ara06:28
*** ccamacho has joined #ara11:25
ccamachohi folks! quick question, im running several ansible playbooks and doing this:11:28
ccamachohttps://github.com/ansible-community/ara#recording-playbooks-without-an-api-server11:28
ccamachoIs there a way to have this view https://github.com/ansible-community/ara/blob/master/doc/source/_static/ui-playbook-details.png11:28
ccamachofrom my recently executed playbook as a single HTML file?11:28
ccamachosomething similar to what I do with pytest-html11:29
ccamachoif you open the docs11:31
ccamachohttps://ara.readthedocs.io/en/latest/usage.html#generating-a-static-html-version-of-the-web-application11:31
ccamachothe link is broken11:31
ccamachobut I think it can be done with  ara-manage generate11:32
ccamachowhat 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
sshnaidmccamacho, in previous versions it was "ara generate html", but not sure what is now..12:07
ccamachosshnaidm: 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
ccamachothanks!12:09
sshnaidmccamacho, I know it was possible because we did it in CI, but afaik now it's not, need a server, let dmsimard to confirm12:10
dmsimardccamacho, sshnaidm: o/ I'm not fully awake yet12:20
ccamacho:)12:20
ccamachojaaj12:20
ccamachono worries :)12:20
dmsimardthere's no particular support for rendering to a single page12:20
dmsimardwe could argue it could exist but then you'd also lose a bunch of context12:21
dmsimardyou would not be able to view result details, no files, no search, no sorting12:21
dmsimardwhat's your use case ?12:22
ccamachodmsimard: 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 ara12:22
ccamachobecause they are single files12:22
ccamachobut ill try to cdn it12:22
dmsimardwould 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 basically12:24
dmsimardif 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 webapp12:24
ccamachodmsimard: yeah xD I wanted the whole thing, but is not an issue Ill just put into a cdn the folder12:26
dmsimardright now this is where the generation happens: https://github.com/ansible-community/ara/blob/master/ara/ui/management/commands/generate.py12:26
dmsimardso you could have something similar that uses a different template12:26
ccamachohmm ill lurk into the code12:27
ccamachothanks!!12:27
dmsimardthat 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#L1812:27
dmsimardthere's an issue to migrate it to the new cli, haven't gotten around to it12:28
*** sshnaidm is now known as sshnaidm|afk13:56
*** sshnaidm|afk is now known as sshnaidm14:34
*** etienne has joined #ara14:35
*** e-tienne has joined #ara15:32
*** etienne has quit IRC15:32
*** irclogbot_0 has quit IRC16:41
*** irclogbot_3 has joined #ara16:45
*** TKersten has left #ara16:56
*** TKersten has joined #ara17:07
*** TKersten has left #ara17:07
*** e-tienne has quit IRC18:13
*** sshnaidm has quit IRC18:23
*** sshnaidm has joined #ara18:24
*** sshnaidm has quit IRC18:28
*** sshnaidm has joined #ara18:28
ara-slackg_sav: @g_sav has joined the channel20:44

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!