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

Switch repo to atomicorp #29

Merged
merged 2 commits into from
Aug 16, 2020
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
4 changes: 4 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ ossec_server_name: ""
ossec_managed_server: true
ossec_server_atomic_release: 1.0-21
ossec_agent_package_name: ossec-hids-agent

# Set to an empty string or null to disable adding a key
ossec_agent_debian_repository_key: "https://www.atomicorp.com/RPM-GPG-KEY.atomicorp.txt"
ossec_agent_debian_repository_url: "https://updates.atomicorp.com/channels/atomic/{{ ansible_distribution | lower }}"
8 changes: 6 additions & 2 deletions tasks/Debian.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
- name: Debian/Ubuntu | Installing repository key
apt_key: url=http://ossec.wazuh.com/repos/apt/conf/ossec-key.gpg.key
apt_key:
url: "{{ ossec_agent_debian_repository_key }}"
when: ossec_agent_debian_repository_key

- name: Debian/Ubuntu | Installing repository
apt_repository: repo="deb http://ossec.wazuh.com/repos/apt/{{ ansible_distribution | lower }} {{ ansible_distribution_release }} main" state=present
apt_repository:
repo: "deb {{ ossec_agent_debian_repository_url }} {{ ansible_distribution_release }} main"
state: present