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
3116d3af
Commit
3116d3af
authored
4 years ago
by
Andreas Hamacher
Browse files
Options
Downloads
Patches
Plain Diff
eliminating one more changed
parent
0a0c3673
No related branches found
No related tags found
Loading
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/etcHosts/tasks/main.yml
+11
-2
11 additions, 2 deletions
roles/etcHosts/tasks/main.yml
with
11 additions
and
2 deletions
roles/etcHosts/tasks/main.yml
+
11
−
2
View file @
3116d3af
...
@@ -2,8 +2,17 @@
...
@@ -2,8 +2,17 @@
lineinfile
:
lineinfile
:
args
:
args
:
dest
:
/etc/cloud/cloud.cfg
dest
:
/etc/cloud/cloud.cfg
line
:
"
preserve_hostname:
True"
line
:
"
preserve_hostname:
false"
regexp
:
'
^preserve_hostname\:
false'
state
:
absent
become
:
true
when
:
ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
-
name
:
remove preserve_hostname_false on CentOS
lineinfile
:
args
:
dest
:
/etc/cloud/cloud.cfg
line
:
"
preserve_hostname:
true"
state
:
present
become
:
true
become
:
true
when
:
ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
when
:
ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
...
...
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