- name: archive logs
hosts: localhost
vars:
date: "{{ lookup('pipe', 'date -d \"-1 month\" +\"%m-%Y\"') }}"
loop:
- { customer: 'customer1', archive: 'customer1.tgz', bucket: 'customer1-log-archive' }
- { customer: 'customer2', archive: 'customer2.tgz', bucket: 'customer2-log-archive' }
--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/a2a6PBxUG20/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACVha7f6i50uYXD31J%2BPBfEKkTou-byGnHM1qWjEAm68%2BMG-Qg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
- name: archive logs hosts: localhost vars: - date: "{{ lookup('pipe', 'date -d \"-1 month\" +\"%m-%Y\"') }}" - customers: - { name: 'customer1', archive: 'customer1.tgz', bucket: 'customer1-log-archive' } - { name: 'customer2', archive: 'customer2.tgz', bucket: 'customer2-log-archive' }