ajout modification

This commit is contained in:
mathis 2022-10-13 09:20:45 +02:00
parent 87899ee6a9
commit deb87f5152
4 changed files with 8621 additions and 5 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,31 @@
---
- hosts: infra
vars:
- proxy_port: 8080
- proxy_mem: 128
- proxy_localnet: "192.168.0.0/24"
tasks:
- name: Installation squid
apt:
name: squid
state: present
- name: constitution squid.conf.j2 a partir de squid.conf
template:
src: squid.conf.j2
dest: /etc/squid/squid.conf
mode: 0644
backup: true
notify: restart squid
handlers:
- name: restart squid
service:
name: squid
state: restarted
# - name: recup fichier de conf squid.conf
# fetch:
# src: /etc/squid/squid.conf
# dest: squid.conf.j2

View File

@ -9,14 +9,20 @@
backup: true
notify: Restart systemd-journald.service
- name: Ajoute l'indication de serveur syslog distant si elle n'est pas presente
lineinfile:
path: /etc/rsyslog.conf
line: '*.* @192.168.0.45:514'
create: yes
handlers:
- name: Restart systemd-journald.service
service:
name: systemd-journald.service
state: restarted
- name: Ajoute l'indication de serveur syslog distant si elle n'est pas presente
lineinfile:
path: /etc/rsyslog.conf
line: '*.* @192.168.0.42:514'
create: yes
handlers:
- name: Restart systemd-journald.service
service:
name: systemd-journald.service
state: restarted

View File

@ -0,0 +1,11 @@
---
- hosts:
tasks:
- name: Recuperation dokuwiki
get_url:
url: http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
dest: /var/www/html
remote_src: yes
tar xvfz dokuwiki-stable.tgz