mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-15 09:23:06 -06:00
drop duplicate handlers in mesh role and drop unused registered variable
This commit is contained in:
@@ -1,24 +1,6 @@
|
|||||||
---
|
---
|
||||||
# Handlers are executed in the order they are defined in the handlers section, not in the order listed in the notify statement.
|
# Handlers are executed in the order they are defined in the handlers section, not in the order listed in the notify statement.
|
||||||
|
|
||||||
- name: Restart Product
|
|
||||||
ansible.builtin.service:
|
|
||||||
name: "{{ atl_systemd_service_name }}"
|
|
||||||
state: restarted
|
|
||||||
when:
|
|
||||||
- atl_startup_restart
|
|
||||||
- molecule_yml is not defined
|
|
||||||
no_log: true
|
|
||||||
|
|
||||||
- name: Enable Product
|
|
||||||
ansible.builtin.service:
|
|
||||||
name: "{{ atl_systemd_service_name }}"
|
|
||||||
enabled: true
|
|
||||||
when:
|
|
||||||
- atl_startup_enable
|
|
||||||
- molecule_yml is not defined
|
|
||||||
no_log: true
|
|
||||||
|
|
||||||
- name: Register Mesh Node
|
- name: Register Mesh Node
|
||||||
ansible.builtin.uri:
|
ansible.builtin.uri:
|
||||||
url: '{{ atl_proxy_name }}/rest/api/latest/admin/git/mesh/nodes'
|
url: '{{ atl_proxy_name }}/rest/api/latest/admin/git/mesh/nodes'
|
||||||
|
|||||||
@@ -14,7 +14,6 @@
|
|||||||
timeout: 300
|
timeout: 300
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
become: false
|
become: false
|
||||||
register: mesh_service_waiter
|
|
||||||
|
|
||||||
- name: Trigger the handler to update this existing mesh node
|
- name: Trigger the handler to update this existing mesh node
|
||||||
ansible.builtin.assert:
|
ansible.builtin.assert:
|
||||||
|
|||||||
Reference in New Issue
Block a user