Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor code to use given variables for linux .rpm agent version determination #33

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions roles/install_agent/tasks/Linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
- name: "Block: RPM based systems"
when: pkg_format == "rpm"
block:
- name: "Linux: Check if package is signed"
ansible.builtin.include_tasks: signed.yml

- name: "Linux: Copy gpg key to remote server"
ansible.builtin.copy:
Expand Down
2 changes: 1 addition & 1 deletion roles/install_agent/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
agent_installed: "{{ true if ansible_facts.packages.sentinelagent is defined or ansible_facts.packages.SentinelAgent is defined
or sentinelagent_service.exists | default(false) else false }}"

- name: "Download {{ pkg_format }} agent {{ agent_version }} to localhost"
- name: "Download agent {{ agent_version }} to localhost"
sentinelone_download_agent:
console_url: "{{ console_url }}"
token: "{{ api_token }}"
Expand Down
12 changes: 0 additions & 12 deletions roles/install_agent/tasks/signed.yml

This file was deleted.

2 changes: 1 addition & 1 deletion roles/install_agent/vars/Linux.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
remote_pkg_path: "/tmp/{{ return_download_agent.original_message.filename }}"
remote_gpg_key_path: "/tmp/sentinel_one.gpg"
signed_package: true
signed_package: "{{ false if agent_version == 'custom' and custom_version is version('23.3.2.12', '<') else true }}"
Loading