Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository 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
hpc-team
HPCasCode
Commits
3b0d73ef
Commit
3b0d73ef
authored
4 years ago
by
Andreas Hamacher
Browse files
Options
Downloads
Patches
Plain Diff
removing unnecessary changed
Former-commit-id:
07b5f784
parent
472c93dd
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
roles/calculateEtcHosts/tasks/main.yml
+9
-0
9 additions, 0 deletions
roles/calculateEtcHosts/tasks/main.yml
roles/etcHosts/tasks/main.yml
+9
-0
9 additions, 0 deletions
roles/etcHosts/tasks/main.yml
with
18 additions
and
0 deletions
roles/calculateEtcHosts/tasks/main.yml
+
9
−
0
View file @
3b0d73ef
...
@@ -14,3 +14,12 @@
...
@@ -14,3 +14,12 @@
-
name
:
fetch hosts file
-
name
:
fetch hosts file
fetch
:
src=/tmp/etcHosts dest=files/etcHosts flat=yes
fetch
:
src=/tmp/etcHosts dest=files/etcHosts flat=yes
-
name
:
make sure our repo server is resolvable
lineinfile
:
path
:
files/etcHosts
line
:
"
{{
reposerverip
}}
{{
reposervername
}}"
owner
:
root
group
:
root
become
:
True
when
:
{{
reposerverip
}}
is defined and {{ reposervername }} is defined
This diff is collapsed.
Click to expand it.
roles/etcHosts/tasks/main.yml
+
9
−
0
View file @
3b0d73ef
...
@@ -8,6 +8,15 @@
...
@@ -8,6 +8,15 @@
check_mode
:
no
check_mode
:
no
changed_when
:
False
changed_when
:
False
-
debug
:
var
:
sysctl_hostname.stdout
when
:
not sysctl_hostname.stdout == inventory_hostname
-
debug
:
var
:
inventory_hostname
when
:
not sysctl_hostname.stdout == inventory_hostname
-
name
:
set hostname by sysctl
-
name
:
set hostname by sysctl
shell
:
sysctl kernel.hostname="{{ inventory_hostname }}"
shell
:
sysctl kernel.hostname="{{ inventory_hostname }}"
become
:
true
become
:
true
...
...
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