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
2458c29c
Commit
2458c29c
authored
2 years ago
by
Alexander Käb
Browse files
Options
Downloads
Patches
Plain Diff
Change to download the repository file to localhost first
parent
289fb6c8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks/main.yml
+30
-6
30 additions, 6 deletions
tasks/main.yml
with
30 additions
and
6 deletions
tasks/main.yml
+
30
−
6
View file @
2458c29c
...
@@ -12,24 +12,48 @@
...
@@ -12,24 +12,48 @@
when
:
ansible_os_family == 'Debian'
when
:
ansible_os_family == 'Debian'
become
:
true
become
:
true
block
:
block
:
-
name
:
Download repository file
-
name
:
Download repository file
(Debian | Ubuntu)
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
mode
:
0644
delegate_to
:
localhost
run_once
:
true
-
name
:
Add repository using dpkg
-
name
:
Copy DEB to nodes (Debian | Ubuntu)
ansible.builtin.copy
:
src
:
/tmp/graylog-sidecar-repository.deb
dest
:
/tmp/graylog-sidecar-repository.deb
mode
:
0644
-
name
:
Add repository using dpkg (Debian | Ubuntu)
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
changed_when
:
false
-
name
:
Add sidecar repo (RedHat)
-
name
:
Add sidecar repo (RedHat)
ansible.builtin.yum
:
name
:
"
{{
sidecar_repo_urls['RedHat']
}}"
state
:
present
disable_gpg_check
:
true
# Here, we are installing the package that contains the gpg key
when
:
ansible_os_family == 'RedHat'
when
:
ansible_os_family == 'RedHat'
become
:
true
become
:
true
block
:
-
name
:
Download rpm file (RedHat)
ansible.builtin.get_url
:
url
:
"
{{
sidecar_repo_urls['RedHat']
}}"
dest
:
/tmp/graylog-sidecar-repository.rpm
mode
:
0644
delegate_to
:
localhost
run_once
:
true
-
name
:
Copy RPM to nodes (RedHat)
ansible.builtin.copy
:
src
:
/tmp/graylog-sidecar-repository.rpm
dest
:
/tmp/graylog-sidecar-repository.rpm
mode
:
0644
-
name
:
Install rpm (RedHat)
ansible.builtin.yum
:
name
:
/tmp/graylog-sidecar-repository.rpm
state
:
present
disable_gpg_check
:
true
# Here, we are installing the package that contains the gpg key
-
name
:
Install sidecar package
-
name
:
Install sidecar package
ansible.builtin.package
:
ansible.builtin.package
:
...
...
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