Fix deprecation warning (loop in Jupyter notebbok)
Calling host: obelix.las.kit.edu (Fedora 31)
Failing nodes: idefix
Summary
Deprecation warning for using list as loop for package managers instead of installing the list. See other roles (eg. common) for the fix of this issue.
Steps to reproduce
Run sites.yml
What is the current bug behavior?
Deprecation warning
What is the expected correct behaviour?
No deprecation warning
Relevant logs and/or screenshots
TASK [ipynb : install Jupyter notebook for Python 3] *****************************************************************
[DEPRECATION WARNING]: Invoking "dnf" only once while using a loop via squash_actions is deprecated. Instead of using
a loop to supply multiple items and specifying `name: "{{ item }}"`, please use `name: ['python3-jupyter-core',
'python3-ipykernel', 'python3-nbformat', 'python3-ipdb', 'python3-ipython']` and remove the loop. This feature will
be removed in version 2.11. Deprecation warnings can be disabled by setting deprecation_warnings=False in
ansible.cfg.
ok: [idefix.las.kit.edu] => (item=['python3-jupyter-core', 'python3-ipykernel', 'python3-nbformat', 'python3-ipdb', 'python3-ipython'])
TASK [ipynb : install Jupyter notebook extensions] *******************************************************************
[DEPRECATION WARNING]: Invoking "pip" only once while using a loop via squash_actions is deprecated. Instead of using
a loop to supply multiple items and specifying `name: "{{ item }}"`, please use `name: ['ipywidgets']` and remove
the loop. This feature will be removed in version 2.11. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
ok: [idefix.las.kit.edu] => (item=['ipywidgets'])
Possible fixes
Don't use a loop (with_items), but provide the list as the name
argument.
/cc @vn4918