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
48fd15f3
Commit
48fd15f3
authored
Mar 28, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use block for hosts
parent
f1678a2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
defaults/main.yml
defaults/main.yml
+3
-0
tasks/utility.yml
tasks/utility.yml
+4
-4
No files found.
defaults/main.yml
View file @
48fd15f3
...
@@ -24,3 +24,6 @@ vm_agents_status: present
...
@@ -24,3 +24,6 @@ vm_agents_status: present
customization
:
true
customization
:
true
nvidia_driver_version
:
null
nvidia_driver_version
:
null
cloud_kernel
:
auto
# or enabled / disabled
cloud_kernel
:
auto
# or enabled / disabled
railgun
:
destination
:
chnroute
remoteGatewayId
:
31
tasks/utility.yml
View file @
48fd15f3
...
@@ -19,10 +19,10 @@
...
@@ -19,10 +19,10 @@
when
:
inventory_hostname_short != '10' and inventory_hostname_short != '172' and inventory_hostname_short != '192'
when
:
inventory_hostname_short != '10' and inventory_hostname_short != '172' and inventory_hostname_short != '192'
-
name
:
hostname hosts
-
name
:
hostname hosts
become
:
true
become
:
true
line
infile
:
block
infile
:
dest
:
/etc/hosts
path
:
/etc/hosts
regexp
:
"
^{{
ansible_default_ipv4.address
}}"
marker
:
'
#
Generated
by
MyCard
Init'
line
:
"
{{
ansible_default_ipv4.address
}}
{{
inventory_hostname
}}
{{
inventory_hostname_short
}}"
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'
when
:
inventory_hostname_short != '10' and inventory_hostname_short != '172' and inventory_hostname_short != '192'
-
name
:
clean aliyun
-
name
:
clean aliyun
become
:
true
become
:
true
...
...
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