create vars file

This commit is contained in:
Ruben Blanco 2023-10-18 10:10:52 +02:00
parent 486f3d7762
commit 73d62bedd7
2 changed files with 6 additions and 3 deletions

View File

@ -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
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

View File

@ -0,0 +1,3 @@
---
source_path_ssh: /etc/ssh/sshd_config.orig
dest_path_ssh: /etc/ssh/sshd_config