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

Commit

Permalink
Automatically get most recent version.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Dec 29, 2018
1 parent eb14bfa commit fc7e6d8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ These variables are set in `defaults/main.yml`:
---
# defaults file for awx
# The version of AWX to install
awx_version: 2.0.1
# The default password for the user `admin`.
awx_admin_password: password
Expand Down
3 changes: 0 additions & 3 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
---
# defaults file for awx

# The version of AWX to install
awx_version: 2.1.2

# The default password for the user `admin`.
awx_admin_password: password

Expand Down
11 changes: 11 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@
https://github.com/ansible/awx/blob/devel/INSTALL.md#system-requirements
Your system has {{ ansible_memtotal_mb }} mb memory and {{ ansible_processor_vcpus }} cpus.
- name: get tags
uri:
url: https://api.github.com/repos/ansible/awx/tags
register: awx_get_tags

- name: pick most recent tag
set_fact:
awx_version: "{{ item.name }}"
with_items:
- "{{ awx_get_tags.json | first }}"

- name: unarchive software
unarchive:
src: "https://github.com/ansible/awx/archive/{{ awx_version }}.tar.gz"
Expand Down

0 comments on commit fc7e6d8

Please sign in to comment.