minor tweaks to roles
[awsible] / roles / common / tasks / main.yml
index 12c6ff1637fda0e0082a4a2d514c512c70923675..c65548d7bc1118671d3576bf0659235ab94c6f37 100644 (file)
@@ -1,20 +1,4 @@
 ---
-- 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
@@ -31,7 +15,7 @@
   - 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