On Tue, 12 Jan 2021 at 10:15, [email protected] <[email protected]> wrote: > > versions > > ansible version: 2.10.4 > system version: CentOS7.9 > kernel version: 3.10.0-1160.11.1.el7.x86_64 > > bug errorswhen I use the ansible-playbook ,the yml file is below: > > name: List images > shell: ls /tmp/images > register: lists > > name: show lists > debug: > var: lists.stdout_lines > > name: Load docker images > shell: > chdir: /tmp/images > cmd: docker load -i {{ item }} > with_items: "{{ lists.stdout_lines }}"
The indentation looks wrong here. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwOoEF%2BSTjrUTda2_WPgSce4kn_eVky5NuEfkV5X-uiwaA%40mail.gmail.com.
