Compare commits

...

4 Commits

Author SHA1 Message Date
bb
20f8fcccbe X509 install en priorité 2021-02-01 11:16:02 +01:00
am
a76aa215d3 modif main.yml 2021-02-01 11:02:16 +01:00
am
afdd827df3 ajout du proxy inverse 2021-02-01 09:40:04 +01:00
290e2866fe ajout permitrootlogin 2021-02-01 09:35:18 +01:00
6 changed files with 46 additions and 5 deletions

View File

@ -12,8 +12,8 @@
- base - base
- goss - goss
- snmp-agent - snmp-agent
- vpn-stg-r # - vpn-stg-r
# - x509-r - x509-r
# - firewall-vpn-r # - firewall-vpn-r
- ssh-cli - ssh-cli
- syslog-cli - syslog-cli

View File

@ -13,9 +13,10 @@
- goss - goss
- dhcp-ag - dhcp-ag
- dns-agence - dns-agence
- ssh-root-access
- snmp-agent - snmp-agent
- vpn-stg-l # - vpn-stg-l
# - x509-l - x509-l
# - firewall-vpn-l # - firewall-vpn-l
- ssh-cli - ssh-cli
- syslog-cli - syslog-cli

View File

@ -16,6 +16,7 @@ services:
- MYSQL_PASSWORD=root - MYSQL_PASSWORD=root
- MYSQL_DATABASE=nextcloud - MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud - MYSQL_USER=nextcloud
TZ: Europe/Paris
app: app:
image: nextcloud image: nextcloud
@ -31,3 +32,4 @@ services:
- MYSQL_DATABASE=nextcloud - MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud - MYSQL_USER=nextcloud
- MYSQL_HOST=db - MYSQL_HOST=db
TZ: Europe/Paris

View File

@ -24,7 +24,7 @@ server {
location / { location / {
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://localhost:5678; proxy_pass http://localhost:5678;
proxy_connect_timeout 900; proxy_connect_timeout 900;
proxy_send_timeout 900; proxy_send_timeout 900;

View File

@ -29,3 +29,34 @@
shell: docker-compose up -d shell: docker-compose up -d
args: args:
chdir: /root/nextcloud chdir: /root/nextcloud
- name: Installation de Nginx
package:
name: nginx
state: present
- name: Copie de /etc/nginx/site-availables/proxy
copy:
src: /root/tools/ansible/gsb2021/roles/docker-nextcloud/files/proxy
dest: /etc/nginx/sites-available
- name: Supression de /etc/nginx/sites-enabled/default
file:
path: /etc/nginx/sites-enabled/default
state: absent
- name: Creation de lien symbolique avec /etc/nginx/sites-available/proxy dans /etc/nginx/sites-enabled/proxy
file:
src: /etc/nginx/sites-available/proxy
dest: /etc/nginx/sites-enabled
state: link
- name: Redemmarage de Nginx
service:
name: nginx
state: restarted
- name: Copie de config.php dans /root/nextcloud/nextcloud/config
copy:
src: /root/tools/ansible/gsb2021/roles/docker-nextcloud/files/config.php
dest: /root/nextcloud/nextcloud/config

View File

@ -0,0 +1,7 @@
- name: Activation acces ssh root pour vp-1 (certificat)
lineinfile:
dest: /etc/ssh/sshd_config
regexp: "^PermitRootLogin"
line: "PermitRootLogin yes"
state: present