Archiving user home directories with external var file 

user.yml
---
user:
  - user1
  - user2

archive_home_dir.yml
---
- hosts: all
  tasks:
     - archive:
          path: /home/{{ user }}
          dest: /home/archive/{{ user }}.tar.gz
          format: gz
ansible-playbook archive_home_dir.yml -e @user.yml

i get 
-rw-r--r--    1 root     system           88 Nov 01 11:58 [u'user1', 
u'user2'].tar.gz

i was expecting 
-rw-r--r--    1 root     system           88 Nov 01 11:58 user1.tar.gz
-rw-r--r--    1 root     system           88 Nov 01 11:58 user2.tar.gz

-- 
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/9f1a19d1-16b3-4f71-9c9d-9594ec299750n%40googlegroups.com.

Reply via email to