Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lab3_Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
alexandr.benzonan
lab3_Ansible
Commits
58f7edae
Commit
58f7edae
authored
2 years ago
by
alexandr.benzonan
Browse files
Options
Downloads
Patches
Plain Diff
fix iface restart
parent
b168d9f2
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
playbook.yaml
+8
-10
8 additions, 10 deletions
playbook.yaml
with
8 additions
and
10 deletions
playbook.yaml
+
8
−
10
View file @
58f7edae
-
name
:
Set eth0 static
hosts
:
all
vars_files
:
-
vars.yml
tasks
:
-
name
:
Set iface static
template
:
src
:
static_iface.j2
dest
:
/etc/network/interfaces.d/ansible.conf
mode
:
0644
-
name
:
Restart networking eth0
hosts
:
all
tasks
:
-
name
:
Restart networking eth0
shell
:
ifdown eth0 && ifup eth0
-
name
:
Restart networking eth1
hosts
:
routers
tasks
:
-
name
:
Restart networking eth1
shell
:
ifdown eth1 && ifup eth1
notify
:
Restart networking
handlers
:
-
name
:
Restart networking
service
:
name
:
networking
state
:
restarted
-
name
:
Test config by pinging
hosts
:
H1
tasks
:
...
...
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