Skip to content

Commit

Permalink
Merge branch 'release/4.7.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
hswong3i committed Mar 12, 2021
2 parents 6688cf3 + e04e6f5 commit 5676f2e
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 23 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# Ansible Role for conmon

## 4.7.0 - TBC
## 4.8.0 - TBC

### Major Changes

## 4.7.0 - 2021-03-13

### Major Changes

- Bugfix [ansible-lint `namespace`](https://github.com/ansible-community/ansible-lint/pull/1451)
- Bugfix [ansible-lint `no-handler`](https://github.com/ansible-community/ansible-lint/pull/1402)
- Bugfix [ansible-lint `unnamed-task`](https://github.com/ansible-community/ansible-lint/pull/1413)
- Simplify Python dependency with system packages
- Support RHEL 8 with Molecule
- Support RHEL 7 with Molecule
Expand Down
2 changes: 1 addition & 1 deletion ansible-galaxy-requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
collections:
- name: community.general
src: https://galaxy.ansible.com
version: ">=1.0.0,<2.0.0"
version: ">=2.0.0,<3.0.0"

- name: community.kubernetes
src: https://galaxy.ansible.com
Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.

# conmon version.
conmon_version: "v2.0.26"
conmon_version: "v2.0.27"

# conmon download details.
conmon_download: "{{ _conmon_download[conmon_version] }}"
14 changes: 14 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,17 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

- name: conmon | download archive
vars:
ansible_python_interpreter: "python3"
get_url:
url: "{{ item.url }}"
dest: "{{ item.dest }}"
checksum: "{{ item.checksum }}"
mode: "{{ item.mode | default('0644') }}"
timeout: 300
loop:
- "{{ conmon_download }}"
register: result
until: result is succeeded
1 change: 1 addition & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# limitations under the License.

galaxy_info:
namespace: alvistack
role_name: conmon
author: "Wong Hoi Sing Edison <[email protected]>"
description: Ansible Role for conmon Installation
Expand Down
3 changes: 2 additions & 1 deletion molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
remote_user: root
become: true
tasks:
- include_role:
- name: include role
include_role:
name: conmon
tags: conmon
19 changes: 4 additions & 15 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,11 @@
loop:
- { dest: "/usr/local/bin" }
- { dest: "{{ conmon_download.dest | dirname }}" }
register: file_result
notify:
- conmon | download archive

- name: download archive
vars:
ansible_python_interpreter: "python3"
get_url:
url: "{{ item.url }}"
dest: "{{ item.dest }}"
checksum: "{{ item.checksum }}"
mode: "{{ item.mode | default('0644') }}"
timeout: 300
loop:
- "{{ conmon_download }}"
when: file_result is changed
register: result
until: result is succeeded
- name: flush handlers
meta: flush_handlers

- name: unarchive package
shell: |
Expand Down
8 changes: 4 additions & 4 deletions vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
# limitations under the License.

_conmon_download:
"v2.0.27":
url: "http://github.com/alvistack/containers-conmon/releases/download/v2.0.27/conmon-v2.0.27-linux-amd64"
dest: "/var/cache/ansible/3d741c6539f2f4d28d6bf34420771ce5ce8609770ac1e102c806b1a9244b879b/conmon-v2.0.27-linux-amd64"
checksum: "sha256:3d741c6539f2f4d28d6bf34420771ce5ce8609770ac1e102c806b1a9244b879b"
"v2.0.26":
url: "http://github.com/alvistack/containers-conmon/releases/download/v2.0.26/conmon-v2.0.26-linux-amd64"
dest: "/var/cache/ansible/891ddbdddd8a7c8178cab71c0f7fbd91f5baeee2cd5699317a2c2b724ec6bd5f/conmon-v2.0.26-linux-amd64"
Expand All @@ -23,7 +27,3 @@ _conmon_download:
url: "http://github.com/alvistack/containers-conmon/releases/download/v2.0.25/conmon-v2.0.25-linux-amd64"
dest: "/var/cache/ansible/0329b05a3401abe95677646f5a039fcb6790ed55a90d48a9af3e08b45b9ea3c3/conmon-v2.0.25-linux-amd64"
checksum: "sha256:0329b05a3401abe95677646f5a039fcb6790ed55a90d48a9af3e08b45b9ea3c3"
"v2.0.24":
url: "http://github.com/alvistack/containers-conmon/releases/download/v2.0.24/conmon-v2.0.24-linux-amd64"
dest: "/var/cache/ansible/f0f71d1e5b2dc552ea33db21ba5ab58cd17e5010f8999658692308ef6073d861/conmon-v2.0.24-linux-amd64"
checksum: "sha256:f0f71d1e5b2dc552ea33db21ba5ab58cd17e5010f8999658692308ef6073d861"

0 comments on commit 5676f2e

Please sign in to comment.