Merge pull request #765 from wazuh/764-fix-latest-release-task

Disable become root in delegated task
This commit is contained in:
Alberto Rodríguez 2022-05-09 15:47:36 +02:00 committed by GitHub
commit e18418f4d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
---
- name: Get latest Wazuh release
become: false
shell: "curl --silent https://api.github.com/repos/wazuh/wazuh/releases/latest | grep '\"tag_name\":' | sed -E 's/.*\"([^\"]+)\".*/\\1/'| cut -c 2-"
register: wazuh_latest_release
delegate_to: localhost