Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ics-ans-role-java
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
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
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
Luis Contreras
ics-ans-role-java
Commits
b059c5ae
Commit
b059c5ae
authored
4 years ago
by
Benjamin Bertrand
Browse files
Options
Downloads
Patches
Plain Diff
Fix role idempotence
JIRA INFRA-2580 #action In Progress
parent
ad5b762a
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
+10
-6
10 additions, 6 deletions
tasks/main.yml
with
10 additions
and
6 deletions
tasks/main.yml
+
10
−
6
View file @
b059c5ae
---
-
name
:
update apt cache
apt
:
update_cache
:
true
when
:
ansible_facts['os_family'] == "Debian"
-
name
:
install required dependencies for RedHat
yum
:
name
:
unzip
state
:
present
when
:
ansible_facts['os_family'] == "RedHat"
-
name
:
install required dependencies
package
:
# update_cache is required but can't be passed to the package module
-
name
:
install required dependencies for Debian
apt
:
name
:
unzip
state
:
present
update_cache
:
true
when
:
ansible_facts['os_family'] == "Debian"
-
name
:
create the java base directory
file
:
...
...
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