---
-- name: bootstrap /data
- stat:
- path: /data
- register: datadir
-- include: volumes.yml
- when: not datadir.stat.exists
-
-- name: Create local asset directory
- when: ASSET_PATH is defined
- file:
- state: directory
- path: "{{ ASSET_PATH }}"
- mode: "0755"
- owner: root
- group: root
-
- name: Uninstall outdated python packages
with_items:
- aws-cli
- boto3
pip:
name: "{{ item }}"
- state: present
+ state: latest
- name: Common packages
with_items:
command: /usr/sbin/update-motd
- name: profile stuff
- copy:
+ template:
dest: /etc/profile.d/awsible.sh
- src: awsible.sh
+ src: awsible.sh.j2
mode: "0644"
owner: root
group: root