Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
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
Ivan Tyagov
slapos.package
Commits
a34b0692
Commit
a34b0692
authored
Oct 20, 2022
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stat.path doesn't exist in old ansible version
parent
2e374f7e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
playbook/roles/vm-bootstrap/tasks/network.yml
playbook/roles/vm-bootstrap/tasks/network.yml
+2
-2
No files found.
playbook/roles/vm-bootstrap/tasks/network.yml
View file @
a34b0692
...
...
@@ -15,12 +15,12 @@
register
:
iface_config
-
name
:
Disable network default route on interface eth0/CentOS
lineinfile
:
dest=
{{ ifcfg_eth0.stat.path }}
state=present line="DEFROUTE=no"
lineinfile
:
dest=
/etc/sysconfig/network-scripts/ifcfg-eth0
state=present line="DEFROUTE=no"
when
:
ifcfg_eth0.stat.exists == True and gateway_file.stat.exists == True
-
name
:
Disable network default route on interface eth0/Debian-Ubuntu
lineinfile
:
dest
:
"
{{
iface_config.stat.path
}}"
dest
:
/etc/network/interfaces
state
:
present
line
:
"
post-up
route
del
default
dev
eth0"
insertafter
:
"
iface
eth0
inet
dhcp"
...
...
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