Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
I
init
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
init
Commits
f3cd951a
Commit
f3cd951a
authored
Aug 18, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skip username on ip addr
parent
ad09f60e
Pipeline
#15726
failed with stage
in 17 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tasks/utility.yml
tasks/utility.yml
+2
-2
No files found.
tasks/utility.yml
View file @
f3cd951a
...
...
@@ -16,14 +16,14 @@
become
:
true
hostname
:
name
:
"
{{
inventory_hostname
}}"
when
:
inventory_hostname_short
!= '10' and inventory_hostname_short != '172' and inventory_hostname_short != '192'
and not testing
when
:
inventory_hostname_short
is not regex("^[0-9]+$")
and not testing
-
name
:
hostname hosts
become
:
true
blockinfile
:
path
:
/etc/hosts
marker
:
'
#
{mark}
MyCard
Init
block'
block
:
"
{{
ansible_default_ipv4.address
}}
{{
inventory_hostname
}}
{{
inventory_hostname_short
}}"
when
:
inventory_hostname_short
!= '10' and inventory_hostname_short != '172' and inventory_hostname_short != '192'
and not testing
when
:
inventory_hostname_short
is not regex("^[0-9]+$")
and not testing
-
name
:
clean aliyun
become
:
true
shell
:
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment