Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
hitchhooker committed Jan 19, 2025
1 parent 42b0fcc commit f6867f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions roles/setup_install_hyperbridge/handlers/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
state: link
owner: "{{ default_user }}"
group: "{{ default_user }}"
listen: Setup Hyperbridge symlinks

- name: Symlink binary executable
ansible.builtin.file:
Expand All @@ -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:
Expand All @@ -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
4 changes: 1 addition & 3 deletions roles/setup_install_hyperbridge/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f6867f1

Please sign in to comment.