From e04e6f5b37c0e04c4c8a0cef01bbe604c7b6392e Mon Sep 17 00:00:00 2001 From: Wong Hoi Sing Edison Date: Sat, 13 Mar 2021 01:00:30 +0800 Subject: [PATCH] https://github.com/ansible-community/ansible-lint/releases/tag/v5.0.3 --- CHANGELOG.md | 9 ++++++++- handlers/main.yml | 14 ++++++++++++++ meta/main.yml | 1 + molecule/default/converge.yml | 3 ++- tasks/main.yml | 19 ++++--------------- 5 files changed, 29 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb260f0..ba7106b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/handlers/main.yml b/handlers/main.yml index 858af07..d61f42b 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -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 diff --git a/meta/main.yml b/meta/main.yml index e4f9140..3ea0b36 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -15,6 +15,7 @@ # limitations under the License. galaxy_info: + namespace: alvistack role_name: conmon author: "Wong Hoi Sing Edison " description: Ansible Role for conmon Installation diff --git a/molecule/default/converge.yml b/molecule/default/converge.yml index 5c2780e..96d624f 100644 --- a/molecule/default/converge.yml +++ b/molecule/default/converge.yml @@ -18,6 +18,7 @@ remote_user: root become: true tasks: - - include_role: + - name: include role + include_role: name: conmon tags: conmon diff --git a/tasks/main.yml b/tasks/main.yml index c31752f..a2bccc0 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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: |