Archiving user home directories with a var_files

Kenady,

I think you are looking to loop[1] the users correct?

aka

loop: “{{ users }}”

  1. https://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html

even with loop: “{{ users }}” there is no difference

archive_home_dir.yml

even with loop: "{{ users }}" there is no difference

I think you need to loop over {{ user }} and in path/dest use {{ item }}, the default loop variable.

Regards

     Racke