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
b5db566f
Commit
b5db566f
authored
8 years ago
by
Chris Hines
Browse files
Options
Downloads
Patches
Plain Diff
set preserve hostname correctly (yaml format)
parent
e10483b1
No related branches found
No related tags found
1 merge request
!93
Hostname
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/etcHosts/tasks/main.yml
+4
-1
4 additions, 1 deletion
roles/etcHosts/tasks/main.yml
with
4 additions
and
1 deletion
roles/etcHosts/tasks/main.yml
+
4
−
1
View file @
b5db566f
...
...
@@ -21,7 +21,10 @@
when
:
ansible_distribution == "Debian" and ansible_distribution_major_version == "8"
-
name
:
set preserve hostname on CentOS
lineinfile
:
dest=/etc/cloud/cloud.cfg line='preserve_hostname=True'
lineinfile
:
args
:
dest
:
/etc/cloud/cloud.cfg
line
:
"
preserve_hostname:
True"
sudo
:
true
when
:
ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
...
...
This diff is collapsed.
Click to expand it.
Chris Hines
@chines
mentioned in commit
06c98227
·
4 years ago
mentioned in commit
06c98227
mentioned in commit 06c98227bbee74256257c7ea56026d74313f64d4
Toggle commit list
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