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
Lisa Casino
slapos.package
Commits
8f8c258a
Commit
8f8c258a
authored
Jul 17, 2015
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: Fix restart of ssh services on multiple distros
parent
f06e6c63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
playbook/roles/vm-bootstrap/handlers/main.yml
playbook/roles/vm-bootstrap/handlers/main.yml
+7
-2
playbook/roles/vm-bootstrap/tasks/ssh.yml
playbook/roles/vm-bootstrap/tasks/ssh.yml
+2
-0
No files found.
playbook/roles/vm-bootstrap/handlers/main.yml
View file @
8f8c258a
---
---
-
name
:
restart ssh
-
name
:
restart ssh
service
:
name=ssh state=restarted
service
:
name=ssh state=restarted
when
:
ansible_os_family == "Debian"
-
name
:
restart sshd
service
:
name=sshd state=restarted
when
:
ansible_os_family == "RedHat"
playbook/roles/vm-bootstrap/tasks/ssh.yml
View file @
8f8c258a
...
@@ -25,8 +25,10 @@
...
@@ -25,8 +25,10 @@
lineinfile
:
dest=/etc/ssh/sshd_config regexp="^PermitRootLogin (?!no)" line="PermitRootLogin no"
lineinfile
:
dest=/etc/ssh/sshd_config regexp="^PermitRootLogin (?!no)" line="PermitRootLogin no"
notify
:
notify
:
-
restart ssh
-
restart ssh
-
restart sshd
-
name
:
update /etc/ssh/sshd_config
-
name
:
update /etc/ssh/sshd_config
lineinfile
:
dest=/etc/ssh/sshd_config line="PermitRootLogin no"
lineinfile
:
dest=/etc/ssh/sshd_config line="PermitRootLogin no"
notify
:
notify
:
-
restart ssh
-
restart ssh
-
restart sshd
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