Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-graylog-sidecar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hdacloud
ansible-graylog-sidecar
Commits
a83a274b
Commit
a83a274b
authored
2 years ago
by
Alexander Käb
Browse files
Options
Downloads
Patches
Plain Diff
Fix conditional syntax
parent
5703d6cc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/filebeat.yml
+3
-3
3 additions, 3 deletions
tasks/filebeat.yml
tasks/main.yml
+5
-3
5 additions, 3 deletions
tasks/main.yml
with
8 additions
and
6 deletions
tasks/filebeat.yml
+
3
−
3
View file @
a83a274b
-
name
:
Add filebeat repository (Debian | Ubuntu)
-
name
:
Add filebeat repository (Debian | Ubuntu)
become
:
true
become
:
true
when
:
{{
ansible_os_family == 'Debian'
}}
when
:
ansible_os_family == 'Debian'
block
:
block
:
-
name
:
Ensure Apt Can Use Https
-
name
:
Ensure Apt Can Use Https
ansible.builtin.apt
:
ansible.builtin.apt
:
...
@@ -26,11 +26,11 @@
...
@@ -26,11 +26,11 @@
gpgcheck
:
true
gpgcheck
:
true
gpgkey
:
'
https://artifacts.elastic.co/GPG-KEY-elasticsearch'
gpgkey
:
'
https://artifacts.elastic.co/GPG-KEY-elasticsearch'
state
:
present
state
:
present
when
:
{{
ansible_os_family == 'RedHat'
}}
when
:
ansible_os_family == 'RedHat'
become
:
true
become
:
true
-
name
:
Install filebeat package
-
name
:
Install filebeat package
ansible.builtin.package
:
ansible.builtin.package
:
name
:
filebeat
name
:
filebeat
state
:
present
state
:
present
become
:
true
become
:
true
\ No newline at end of file
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
5
−
3
View file @
a83a274b
...
@@ -6,23 +6,25 @@
...
@@ -6,23 +6,25 @@
become
:
true
become
:
true
-
name
:
Add sidecar repo (Debian | Ubuntu)
-
name
:
Add sidecar repo (Debian | Ubuntu)
when
:
{{
ansible_os_family == 'Debian'
}}
when
:
ansible_os_family == 'Debian'
become
:
true
become
:
true
block
:
block
:
-
name
:
Download repository file
-
name
:
Download repository file
ansible.builtin.get_url
:
ansible.builtin.get_url
:
url
:
"
{{
sidecar_repo_urls['Debian']
}}"
url
:
"
{{
sidecar_repo_urls['Debian']
}}"
dest
:
/tmp/graylog-sidecar-repository.deb
dest
:
/tmp/graylog-sidecar-repository.deb
mode
:
0644
-
name
:
Add repository using dpkg
-
name
:
Add repository using dpkg
ansible.builtin.command
:
ansible.builtin.command
:
cmd
:
dpkg -i /tmp/graylog-sidecar-repository.deb
cmd
:
dpkg -i /tmp/graylog-sidecar-repository.deb
changed_when
:
false
-
name
:
Add sidecar repo (RedHat)
-
name
:
Add sidecar repo (RedHat)
ansible.builtin.yum
:
ansible.builtin.yum
:
name
:
"
{{
sidecar_repo_urls['RedHat']
}}"
name
:
"
{{
sidecar_repo_urls['RedHat']
}}"
state
:
present
state
:
present
when
:
{{
ansible_os_family == 'RedHat'
}}
when
:
ansible_os_family == 'RedHat'
become
:
true
become
:
true
-
name
:
Install sidecar package
-
name
:
Install sidecar package
...
@@ -57,7 +59,7 @@
...
@@ -57,7 +59,7 @@
-
name
:
Install filebeat
-
name
:
Install filebeat
ansible.builtin.import_tasks
:
ansible.builtin.import_tasks
:
-
filebeat.yml
-
filebeat.yml
when
:
{{
install_filebeat
}}
when
:
install_filebeat
-
name
:
Switch back to default policy
-
name
:
Switch back to default policy
ansible.builtin.command
:
ansible.builtin.command
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment