commenté sshpass dans main.yml

This commit is contained in:
root 2023-01-12 11:34:37 +01:00
parent 073c529f19
commit d3c3ef1fdc

View File

@ -9,13 +9,13 @@
name: wireguard-tools
state: present
- name: installation de sshpass
apt:
name: sshpass
state: present
#- name: installation de sshpass
# apt:
# name: sshpass
# state: present
- name: copie du fichier de configuration depuis r-vp1
command: "sshpass -p 'root' scp -r root@192.168.99.112:/root/confwg/wg0-b.conf /etc/wireguard/"
#- name: copie du fichier de configuration depuis r-vp1
# command: "sshpass -p 'root' scp -r root@192.168.99.112:/root/confwg/wg0-b.conf /etc/wireguard/"
- name: renommage du fichier de configuration
command: "mv /etc/wireguard/wg0-b.conf /etc/wireguard/wg0.conf"