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

New apt key setup #2

Merged
merged 3 commits into from
Jul 31, 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
4 changes: 2 additions & 2 deletions .github/workflows/ansible_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
- name: Checkout code from Github
uses: actions/checkout@v2

- name: Set up Python 3.8
- name: Set up Python 3.10
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: 3.10.14

- name: Install latest Ansible through pip
run: pip install ansible
Expand Down
8 changes: 4 additions & 4 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
# tasks file for mediafellows.filebeat

- name: Add elastic apt repo key (for all elastic software)
ansible.builtin.apt_key:
- name: Install elastic apt repo key (for all elastic software)
ansible.builtin.get_url:
url: "https://packages.elastic.co/GPG-KEY-elasticsearch"
state: present
dest: "{{ filebeat_repo_apt_key_dest }}"

# Install filebeat as a logstash client (to deliver logs), just for demoing

- name: Add filebeat (Elastic) apt repo
ansible.builtin.apt_repository:
repo: "deb https://artifacts.elastic.co/packages/{{ filebeat_major_version }}/apt stable main"
repo: deb [signed-by={{ filebeat_repo_apt_key_dest }}] https://artifacts.elastic.co/packages/{{ filebeat_major_version }}/apt stable main
update_cache: yes
state: present

Expand Down
1 change: 1 addition & 0 deletions vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---

filebeat_all_prospectors: "{{ filebeat_prospectors + filebeat_extra_prospectors }}"
filebeat_repo_apt_key_dest: '/etc/apt/keyrings/packages-elastic.asc'
Loading