Skip to content

Commit

Permalink
Ensure the apt key dir exists, to also work on older Ubuntu versions
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhorning committed Jul 31, 2024
1 parent b59a17b commit 4f2d3b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ansible_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
steps:

- name: Checkout code from Github
uses: actions/checkout@v2
uses: actions/checkout@v4

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

Expand Down
5 changes: 5 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
url: "https://packages.elastic.co/GPG-KEY-elasticsearch"
dest: "{{ filebeat_repo_apt_key_dest }}"

- name: Ensure apt key dir exists
ansible.builtin.file:
path: "{{ filebeat_repo_apt_key_dest | dirname }}"
state: directory

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

- name: Add filebeat (Elastic) apt repo
Expand Down

0 comments on commit 4f2d3b0

Please sign in to comment.