Compare commits
14 Commits
v0.0.4g-em
...
v0.0.4m-jl
Author | SHA1 | Date | |
---|---|---|---|
4490b84c15 | |||
46ad76af18 | |||
019096fb7e | |||
993c34b934 | |||
fe914d9894 | |||
83bfd34e91 | |||
00289e1bcb | |||
8f3f364152 | |||
e36f8af7e6 | |||
495546fae7 | |||
c29549a281 | |||
761d3a00bc | |||
aadc552dc3 | |||
3cbae83a73 |
@ -13,9 +13,9 @@
|
|||||||
- goss
|
- goss
|
||||||
# - snmp-agent
|
# - snmp-agent
|
||||||
# - firewall-vpn-r
|
# - firewall-vpn-r
|
||||||
|
- post
|
||||||
- wireguard-r
|
- wireguard-r
|
||||||
# - x509-r
|
|
||||||
- fw-ferm
|
- fw-ferm
|
||||||
- ssh-cli
|
- ssh-cli
|
||||||
- syslog-cli
|
- syslog-cli
|
||||||
- post
|
|
||||||
|
@ -109,12 +109,12 @@ log-facility local7;
|
|||||||
#DHCP pour le réseau wifi
|
#DHCP pour le réseau wifi
|
||||||
#subnet 172.16.65.0 netmask 255.255.255.0 {
|
#subnet 172.16.65.0 netmask 255.255.255.0 {
|
||||||
# range 172.16.65.1 172.16.65.100;
|
# range 172.16.65.1 172.16.65.100;
|
||||||
# option domain-name-servers ns1.internal.example.org;
|
# option domain-name-servers ns1.internal.example.org;
|
||||||
# option domain-name "internal.example.org";
|
# option domain-name "internal.example.org";
|
||||||
# option routers 10.5.5.1;
|
# option routers 10.5.5.1;
|
||||||
# option broadcast-address 10.5.5.31;
|
# option broadcast-address 10.5.5.31;
|
||||||
# default-lease-time 600;
|
# default-lease-time 600;
|
||||||
# max-lease-time 7200;
|
# max-lease-time 7200;
|
||||||
#}
|
#}
|
||||||
|
|
||||||
#DHCP pour le réseau USER
|
#DHCP pour le réseau USER
|
||||||
|
@ -10,5 +10,3 @@
|
|||||||
copy: src=dhcpd.conf dest=/etc/dhcp/
|
copy: src=dhcpd.conf dest=/etc/dhcp/
|
||||||
notify:
|
notify:
|
||||||
- restart isc-dhcp-server
|
- restart isc-dhcp-server
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,17 +1,15 @@
|
|||||||
---
|
---
|
||||||
- name: creation d'un repertoire fog
|
|
||||||
file:
|
|
||||||
path: /root/tools/fog
|
|
||||||
state: directory
|
|
||||||
|
|
||||||
- name: recuperation de l'archive d'installation fog sur git
|
- name: recuperation de l'archive d'installation fog sur git
|
||||||
git:
|
git:
|
||||||
repo: https://gitea.lyc-lecastel.fr/gadmin/fog.git
|
repo: https://gitea.lyc-lecastel.fr/gadmin/fog.git
|
||||||
dest: /root/tools/fog/
|
dest: /root/tools/fog/
|
||||||
clone: yes
|
clone: yes
|
||||||
update: yes
|
update: yes
|
||||||
|
force: yes
|
||||||
|
|
||||||
#- name: Instructions
|
- name: Modification fichier bash (desac UDPCast)
|
||||||
# tags: msg
|
ansible.builtin.lineinfile:
|
||||||
# debug: msg='{{instructions}}'
|
path: /root/tools/fog/lib/common/functions.sh
|
||||||
|
regexp: '^configureUDPCast\(\).*'
|
||||||
|
line: "configureUDPCast() {\nreturn"
|
||||||
|
backup: yes
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
---
|
---
|
||||||
- name:
|
- name: installation des paquets web
|
||||||
- apache2
|
apt:
|
||||||
- php
|
name:
|
||||||
- php-mbstring
|
- apache2
|
||||||
- php-mysql
|
- php
|
||||||
- mariadb-client
|
- php-mbstring
|
||||||
state: present
|
- php-mysql
|
||||||
|
- mariadb-client
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: install nfs-common
|
- name: install nfs-common
|
||||||
apt:
|
apt:
|
||||||
@ -16,11 +18,11 @@
|
|||||||
blockinfile:
|
blockinfile:
|
||||||
path: /etc/fstab
|
path: /etc/fstab
|
||||||
block: |
|
block: |
|
||||||
192.168.56.6:/exports/wordpress /var/www/html nfs soft,timeo=5,intr,rsize=8192,wsize=8192,wsize=8192 0 0
|
192.168.102.253:/exports/wordpress /var/www/html nfs soft,timeo=5,intr,rsize=8192,wsize=8192,wsize=8192 0 0
|
||||||
|
|
||||||
- name: monte export wordpress
|
#- name: monte export wordpress
|
||||||
ansible.posix.mount:
|
# ansible.posix.mount:
|
||||||
path: /var/www/html
|
# path: /var/www/html
|
||||||
state: mounted
|
# state: mounted
|
||||||
fstype: nfs
|
# fstype: nfs
|
||||||
src: 192.168.56.6:/exports/wordpress
|
# src: 192.168.102.253:/exports/wordpress
|
||||||
|
@ -14,8 +14,7 @@
|
|||||||
name: wireguard-tools
|
name: wireguard-tools
|
||||||
state: present
|
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: renommage du fichier de configuration
|
#- name: renommage du fichier de configuration
|
||||||
# command: "mv /etc/wireguard/wg0-b.conf /etc/wireguard/wg0.conf"
|
# command: "mv /etc/wireguard/wg0-b.conf /etc/wireguard/wg0.conf"
|
||||||
|
@ -39,3 +39,4 @@
|
|||||||
name: wg-quick@wg0
|
name: wg-quick@wg0
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
|
@ -4,6 +4,6 @@
|
|||||||
|
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
|
- post
|
||||||
- lb-web
|
- lb-web
|
||||||
- snmp-agent
|
- snmp-agent
|
||||||
- post
|
|
||||||
|
@ -4,6 +4,6 @@
|
|||||||
|
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
|
- post
|
||||||
- lb-web
|
- lb-web
|
||||||
- snmp-agent
|
- snmp-agent
|
||||||
- post
|
|
||||||
|
2
scripts/r-vp1-post.sh
Normal file
2
scripts/r-vp1-post.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cd /root/confwg/ && python3 -m http.server 8000 &
|
3
scripts/r-vp2-post.sh
Normal file
3
scripts/r-vp2-post.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
wget http://r-vp1.gsb.adm:8000/wg0-b.qconf
|
Reference in New Issue
Block a user