Skip to content
This repository was archived by the owner on Mar 1, 2020. It is now read-only.

Commit cd79b45

Browse files
committed
fix pkg option from installed to latest
1 parent bb513c3 commit cd79b45

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

defaults/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,6 @@ amzn_base_custom_packages:
3434
- vim
3535
- zip
3636
- curl
37-
- telnet
37+
- telnet
38+
- git
39+
- python-simplejson

tasks/RedHat.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@
2626
yum: name=* state=latest
2727

2828
- name: install necessary admin and custom packages
29-
yum: pkg={{ item }} state=installed
29+
yum: pkg={{ item }} state=latest
3030
with_items: amzn_base_admin_packages| union(amzn_base_custom_packages) | list
3131

3232
- name: install aditional epel packages
33-
yum: pkg={{ item }} enablerepo=epel state=installed
33+
yum: pkg={{ item }} enablerepo=epel state=latest
3434
with_items: amzn_base_epel_packages
3535

36-
#- name: Check what the new version is
37-
# shell: lsb_release -r | awk '{print $2}'
38-
# register: new_release
36+
- name: Check what the new version is
37+
shell: lsb_release -r | awk '{print $2}'
38+
register: release_version
3939

4040
#- name: Reboot
4141
# command: /sbin/reboot -t now

0 commit comments

Comments
 (0)