name: "{{ item }}"
state: present
+- name: Install epel utils
+ with_items:
+ - pwgen
+ yum:
+ enablerepo: epel
+ name: "{{ item }}"
+ state: latest
+
- name: Install PIP things
with_items:
- ansible
- boto3
+ - passlib
pip:
name: "{{ item }}"
- state: present
+ 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