Live data from Hacker News

Show HN: Ansible Kernel – Run Ansible Tasks and Plays with Jupyter Notebook

github.com

1–10 of 28 posts

Re: Show HN: Ansible Kernel – Run Ansible Tasks and Plays with Jupyter Notebook

#5
post #3

I... don’t get the use case for this? What am I missing?

To me it looks like a REPL for Ansible. If it does let you build each task in a cell then you could develop the whole playbook interactively and incrementally. It could reduce the turn around time of having to run a long playbook and waiting till the latest step you wrote.

Re: Show HN: Ansible Kernel – Run Ansible Tasks and Plays with Jupyter Notebook

#6
post #3

I... don’t get the use case for this? What am I missing?

Notebooks allows you to have snippets of code next to the historic results of their execution

It is not just litterate programming, but more like an IDE that does not require your code to keep working (CI/CD... ) : you can refactor at your own pace, iterate, introspect past results, etc.

You prototype like crazy, iterate much faster, and can tweak much more.

However, notebooks are not popular with many programmers. They stick to IDEs. Their loss.

Re: Show HN: Ansible Kernel – Run Ansible Tasks and Plays with Jupyter Notebook

#8
post #5
post #3

I... don’t get the use case for this? What am I missing?

To me it looks like a REPL for Ansible. If it does let you build each task in a cell then you could develop the whole playbook interactively and incrementally. It could reduce the turn around time of having to run a long playbook and waiting till the latest step you wrote.

Doesn't ansible core have ansible console already? This seems very bizarre and solution in search of a problem. An alexa skill for ansible would be interesting, but I wouldn't use it, either.

edit: https://docs.ansible.com/ansible/latest/cli/ansible-console.... "REPL console for executing Ansible tasks."

Re: Show HN: Ansible Kernel – Run Ansible Tasks and Plays with Jupyter Notebook

#9
post #5
post #3

I... don’t get the use case for this? What am I missing?

To me it looks like a REPL for Ansible. If it does let you build each task in a cell then you could develop the whole playbook interactively and incrementally. It could reduce the turn around time of having to run a long playbook and waiting till the latest step you wrote.

That makes sense, but you could also just tag that step and run it with the tag if you are testing it.

Re: Show HN: Ansible Kernel – Run Ansible Tasks and Plays with Jupyter Notebook

#10
post #6
post #3

I... don’t get the use case for this? What am I missing?

Notebooks allows you to have snippets of code next to the historic results of their execution It is not just litterate programming, but more like an IDE that does not require your code to keep working (CI/CD... ) : you can refactor at your own pace, iterate, introspect past results, etc. You prototype like crazy, iterate much faster, and can tweak much more. However, notebooks are not popular with many programmers. T…

This isn't data science. The output of a playbook is dependent on a huge amount of external dependencies and state, and the execution can conditionally depend on that. Maybe programmers should use notebooks more (and I have no opinion on that) but this isn't a situation where they would confer much benefit.
Post reply on HN