with_items:
- ansible
- boto3
+ - passlib
pip:
name: "{{ item }}"
state: latest
- name: Gather AWS info
action: ec2_facts
-- name: Install queue-watching cron
+- name: Install crons
+ with_items:
+ - sqs-poll.cron
+ - ddb-users.cron
template:
- src: sqs-poll.cron.j2
- dest: /etc/cron.d/sqs-poll.cron
+ src: "{{ item }}.j2"
+ dest: /etc/cron.d/{{ item }}
mode: "0644"
owner: root
group: root