From f6867f18e4e6444d34261e7b8d8140b2bb519889 Mon Sep 17 00:00:00 2001 From: hitchhooker Date: Sun, 19 Jan 2025 10:54:41 +0700 Subject: [PATCH] fix linting --- roles/setup_install_hyperbridge/handlers/main.yaml | 6 ++++++ roles/setup_install_hyperbridge/tasks/main.yaml | 4 +--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/roles/setup_install_hyperbridge/handlers/main.yaml b/roles/setup_install_hyperbridge/handlers/main.yaml index d0cd0da..2f5bb87 100644 --- a/roles/setup_install_hyperbridge/handlers/main.yaml +++ b/roles/setup_install_hyperbridge/handlers/main.yaml @@ -7,6 +7,7 @@ state: link owner: "{{ default_user }}" group: "{{ default_user }}" + listen: Setup Hyperbridge symlinks - name: Symlink binary executable ansible.builtin.file: @@ -16,6 +17,7 @@ state: link owner: "{{ default_user }}" group: "{{ default_user }}" + listen: Setup Hyperbridge symlinks - name: Symlink Hyperbridge service to systemd ansible.builtin.file: @@ -26,19 +28,23 @@ owner: "root" group: "root" mode: '0644' + listen: Setup Hyperbridge symlinks - name: Stop Hyperbridge ansible.builtin.systemd: name: hyperbridge state: stopped enabled: True + listen: Restart Hyperbridge service - name: Systemd daemon-reload ansible.builtin.systemd: daemon_reload: True + listen: Restart Hyperbridge service - name: Start Hyperbridge ansible.builtin.systemd: name: hyperbridge state: started enabled: True + listen: Restart Hyperbridge service diff --git a/roles/setup_install_hyperbridge/tasks/main.yaml b/roles/setup_install_hyperbridge/tasks/main.yaml index 9aac7f6..d2007e1 100644 --- a/roles/setup_install_hyperbridge/tasks/main.yaml +++ b/roles/setup_install_hyperbridge/tasks/main.yaml @@ -66,11 +66,10 @@ ansible.builtin.unarchive: src: "{{ default_base_path }}/hyperbridge-v{{ default_client_version }}.tar.gz" dest: "{{ default_base_path }}/hyperbridge-v{{ default_client_version }}" - remote_src: true + remote_src: True owner: "{{ default_user }}" group: "{{ default_user }}" mode: "0750" - when: download_result.changed register: extract_result notify: - Add Service Pinned Status @@ -86,7 +85,6 @@ ansible.builtin.file: path: "{{ default_base_path }}/hyperbridge-v{{ default_client_version }}.tar.gz" state: absent - when: extract_result.changed - name: Flush handlers after Hyperbridge install ansible.builtin.meta: flush_handlers