25 lines
483 B
YAML
25 lines
483 B
YAML
---
|
|
- hosts: wg
|
|
tasks:
|
|
- name: installe Wireguard
|
|
apt:
|
|
name:
|
|
- wireguard
|
|
- wireguard-tools
|
|
state: present
|
|
|
|
- hosts: wg-master
|
|
tasks:
|
|
- name: copie le fichier wg1-a.conf et wg1-b.conf vers les machines master et cli
|
|
copy:
|
|
src: mkwgconf.sh
|
|
dest: mkwgconf.sh
|
|
flat: yes
|
|
- name: generations fichier configuration wireguard wg0-1.conf etc
|
|
shell: bash mkwgconf.sh
|
|
|
|
- hosts: wg-cli
|
|
tasks:
|
|
- name: copie fichier
|
|
|