mirror of
https://github.com/frappe/bench.git
synced 2024-11-14 17:24:04 +00:00
15 lines
331 B
YAML
15 lines
331 B
YAML
|
- name: Change ssh port
|
||
|
gather_facts: false
|
||
|
hosts: localhost
|
||
|
user: root
|
||
|
tasks:
|
||
|
- name: change sshd config
|
||
|
lineinfile: >
|
||
|
dest=/etc/ssh/sshd_config
|
||
|
regexp="^Port"
|
||
|
line="Port {{ ssh_port }}"
|
||
|
state=present
|
||
|
|
||
|
- name: restart ssh
|
||
|
service: name=sshd state=reloaded
|