From 933c48ff1e134168de3aaa2d20e4d43c13d04928 Mon Sep 17 00:00:00 2001 From: Justin Wind Date: Fri, 8 Sep 2017 12:18:29 -0700 Subject: [PATCH] minor tweaks to roles --- roles/common/tasks/main.yml | 2 +- roles/management/tasks/main.yml | 10 +++++++++- roles/msca/tasks/main.yml | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index bbed536..c65548d 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -15,7 +15,7 @@ - boto3 pip: name: "{{ item }}" - state: present + state: latest - name: Common packages with_items: diff --git a/roles/management/tasks/main.yml b/roles/management/tasks/main.yml index 0a99c75..ba24f86 100644 --- a/roles/management/tasks/main.yml +++ b/roles/management/tasks/main.yml @@ -9,13 +9,21 @@ 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 }}" - state: present + state: latest - name: Gather AWS info action: ec2_facts diff --git a/roles/msca/tasks/main.yml b/roles/msca/tasks/main.yml index 82baa87..90736e8 100644 --- a/roles/msca/tasks/main.yml +++ b/roles/msca/tasks/main.yml @@ -14,6 +14,7 @@ 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 -- 2.45.2