refactor ♻️: Refactor task names and add namespace for clarity
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 12s
Gitleaks Scan / gitleaks (push) Successful in 4s
Markdown Lint / markdown-lint (push) Successful in 5s
ai-reviews / Review PR (pull_request) Successful in 24s
ansible-lint / Ansible Lint (pull_request) Successful in 12s
Gitleaks Scan / gitleaks (pull_request) Successful in 5s
Markdown Lint / markdown-lint (pull_request) Successful in 5s
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 12s
Gitleaks Scan / gitleaks (push) Successful in 4s
Markdown Lint / markdown-lint (push) Successful in 5s
ai-reviews / Review PR (pull_request) Successful in 24s
ansible-lint / Ansible Lint (pull_request) Successful in 12s
Gitleaks Scan / gitleaks (pull_request) Successful in 5s
Markdown Lint / markdown-lint (pull_request) Successful in 5s
This commit refactors the task names to improve readability and adds a namespace to avoid conflicts with other modules. It also fixes typos in task names and updates module references accordingly.
This commit is contained in:
@@ -15,9 +15,9 @@
|
|||||||
ansible.builtin.systemd_service:
|
ansible.builtin.systemd_service:
|
||||||
daemon_reexec: true
|
daemon_reexec: true
|
||||||
|
|
||||||
- name: patch legacy proxmoxlib.js
|
- name: Ppatch legacy proxmoxlib.js
|
||||||
block:
|
block:
|
||||||
- name: Patch legacy proxmoxlib.js
|
- name: Ppatch legacy proxmoxlib.js
|
||||||
ansible.builtin.replace:
|
ansible.builtin.replace:
|
||||||
path: /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
|
path: /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
|
||||||
regexp: "if \\(data.status !== 'Active'\\)"
|
regexp: "if \\(data.status !== 'Active'\\)"
|
||||||
@@ -41,11 +41,11 @@
|
|||||||
content: "{{ proxmoxlib_js_after.stat.checksum }}\n"
|
content: "{{ proxmoxlib_js_after.stat.checksum }}\n"
|
||||||
|
|
||||||
- name: Restart pveproxy
|
- name: Restart pveproxy
|
||||||
systemd:
|
ansible.builtin.systemd:
|
||||||
name: pveproxy
|
name: pveproxy
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
- name: patch minified proxmoxlib.js
|
- name: Patch minified proxmoxlib.js
|
||||||
block:
|
block:
|
||||||
- name: Patch minified proxmoxlib.min.js
|
- name: Patch minified proxmoxlib.min.js
|
||||||
ansible.builtin.replace:
|
ansible.builtin.replace:
|
||||||
@@ -70,6 +70,6 @@
|
|||||||
content: "{{ proxmoxlib_min_after.stat.checksum }}\n"
|
content: "{{ proxmoxlib_min_after.stat.checksum }}\n"
|
||||||
|
|
||||||
- name: Restart pveproxy
|
- name: Restart pveproxy
|
||||||
systemd:
|
ansible.builtin.systemd:
|
||||||
name: pveproxy
|
name: pveproxy
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|||||||
@@ -24,14 +24,14 @@
|
|||||||
when: proxmoxlib_js.stat.exists
|
when: proxmoxlib_js.stat.exists
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
- name: Trigger legacy nag patch if needed
|
- name: subscription | Trigger legacy nag patch if needed
|
||||||
meta: flush_handlers
|
ansible.builtin.meta: flush_handlers
|
||||||
when:
|
when:
|
||||||
- proxmoxlib_js.stat.exists
|
- proxmoxlib_js.stat.exists
|
||||||
- proxmoxlib_js_checksum_stored.content is not defined
|
- proxmoxlib_js_checksum_stored.content is not defined
|
||||||
or proxmoxlib_js.stat.checksum
|
or proxmoxlib_js.stat.checksum
|
||||||
!= (proxmoxlib_js_checksum_stored.content | b64decode | trim)
|
!= (proxmoxlib_js_checksum_stored.content | b64decode | trim)
|
||||||
notify: patch legacy proxmoxlib.js
|
notify: Ppatch legacy proxmoxlib.js
|
||||||
|
|
||||||
############################
|
############################
|
||||||
# Minified proxmoxlib.min.js (VE 8/9)
|
# Minified proxmoxlib.min.js (VE 8/9)
|
||||||
@@ -50,11 +50,11 @@
|
|||||||
when: proxmoxlib_min_js.stat.exists
|
when: proxmoxlib_min_js.stat.exists
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
- name: Trigger minified nag patch if needed
|
- name: subscription | Trigger minified nag patch if needed
|
||||||
meta: flush_handlers
|
ansible.builtin.meta: flush_handlers
|
||||||
when:
|
when:
|
||||||
- proxmoxlib_min_js.stat.exists
|
- proxmoxlib_min_js.stat.exists
|
||||||
- proxmoxlib_min_checksum_stored.content is not defined
|
- proxmoxlib_min_checksum_stored.content is not defined
|
||||||
or proxmoxlib_min_js.stat.checksum
|
or proxmoxlib_min_js.stat.checksum
|
||||||
!= (proxmoxlib_min_checksum_stored.content | b64decode | trim)
|
!= (proxmoxlib_min_checksum_stored.content | b64decode | trim)
|
||||||
notify: patch minified proxmoxlib.js
|
notify: Patch minified proxmoxlib.js
|
||||||
|
|||||||
Reference in New Issue
Block a user