You cannot use a variable as the name of the var to be registered. It must
be an explicit static string.
See the following info on the structure of registered data when using a
loop:
https://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html#using-register-with-a-loop
On Tue, Sep
Hello,
Will someone please help me understand why this is not work?
Thanks!
---
- hosts: all
become: yes
become_method: sudo
become_user: root
vars:
stat_files:
- name: stat_var
stat_path: "/etc/resolv.conf"
tasks:
- name: "Verify file copy destination"