minor tweaks to roles
authorJustin Wind <j.wind@partner.samsung.com>
Fri, 8 Sep 2017 19:18:29 +0000 (12:18 -0700)
committerJustin Wind <j.wind@partner.samsung.com>
Fri, 8 Sep 2017 19:18:29 +0000 (12:18 -0700)
roles/common/tasks/main.yml
roles/management/tasks/main.yml
roles/msca/tasks/main.yml

index bbed536372c73a654f15142cb613ac3b91248faa..c65548d7bc1118671d3576bf0659235ab94c6f37 100644 (file)
@@ -15,7 +15,7 @@
   - boto3
   pip:
     name: "{{ item }}"
   - boto3
   pip:
     name: "{{ item }}"
-    state: present
+    state: latest
 
 - name: Common packages
   with_items:
 
 - name: Common packages
   with_items:
index 0a99c753db500374cf784e3ec434e3979fd05af2..ba24f86a11f94bda30ffa5175743bfb766377f9c 100644 (file)
@@ -9,13 +9,21 @@
     name: "{{ item }}"
     state: present
 
     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
   pip:
     name: "{{ item }}"
 - name: Install PIP things
   with_items:
   - ansible
   - boto3
   pip:
     name: "{{ item }}"
-    state: present
+    state: latest
 
 - name: Gather AWS info
   action: ec2_facts
 
 - name: Gather AWS info
   action: ec2_facts
index 82baa8731bf9d00ce015e3d7ecdec821cabc5133..90736e83fc4676a5a6fbd2b6000f038a1557d381 100644 (file)
@@ -14,6 +14,7 @@
     creates: /etc/yum.repos.d/msca-ops.repo
 
 - name: repo perms
     creates: /etc/yum.repos.d/msca-ops.repo
 
 - name: repo perms
+  ignore_errors: "{{ ansible_check_mode }}"
   file:
     path: /etc/yum.repos.d/msca-ops.repo
     owner: root
   file:
     path: /etc/yum.repos.d/msca-ops.repo
     owner: root