create vars file
This commit is contained in:
parent
486f3d7762
commit
73d62bedd7
|
@ -23,8 +23,8 @@
|
|||
# config sshd_config file , no root password
|
||||
- name: change sshd_config to no root password
|
||||
copy:
|
||||
src: /etc/ssh/sshd_config.orig
|
||||
dest: /etc/ssh/sshd_config
|
||||
src: "{{ source_path_ssh }}"
|
||||
dest: "{{ dest_path_ssh }}"
|
||||
remote_src: yes
|
||||
owner: root
|
||||
group: root
|
||||
|
@ -35,7 +35,7 @@
|
|||
# delete file sshd_config.orig
|
||||
- name: delete /etc/ssh/sshd_config.orig file
|
||||
file:
|
||||
path: /etc/ssh/sshd_config.orig
|
||||
path: "{{ source_path_ssh }}"
|
||||
state: absent
|
||||
notify: Restart ssh service
|
||||
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
source_path_ssh: /etc/ssh/sshd_config.orig
|
||||
dest_path_ssh: /etc/ssh/sshd_config
|
Loading…
Reference in New Issue