Actualiser ansible/wg.yml
This commit is contained in:
parent
3cc5c7a773
commit
ea95044a7d
@ -1,6 +1,5 @@
|
|||||||
---
|
---
|
||||||
- hosts: wg
|
- hosts: wg
|
||||||
<<<<<<< HEAD
|
|
||||||
become: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: arrete unattended-upgrades
|
- name: arrete unattended-upgrades
|
||||||
@ -64,27 +63,3 @@
|
|||||||
service:
|
service:
|
||||||
name: wg-quick@wg0.service
|
name: wg-quick@wg0.service
|
||||||
state: restarted
|
state: restarted
|
||||||
=======
|
|
||||||
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
|
|
||||||
|
|
||||||
>>>>>>> d6e080d0145615056a7a0eb3d2f9e512809eb4f5
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user