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