ajout modification
This commit is contained in:
parent
87899ee6a9
commit
deb87f5152
8568
sio2/sisr2/40-Ansible/squid.conf.j2
Normal file
8568
sio2/sisr2/40-Ansible/squid.conf.j2
Normal file
File diff suppressed because it is too large
Load Diff
31
sio2/sisr2/40-Ansible/squid.yml
Normal file
31
sio2/sisr2/40-Ansible/squid.yml
Normal 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
|
@ -9,14 +9,20 @@
|
|||||||
backup: true
|
backup: true
|
||||||
notify: Restart systemd-journald.service
|
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:
|
handlers:
|
||||||
- name: Restart systemd-journald.service
|
- name: Restart systemd-journald.service
|
||||||
service:
|
service:
|
||||||
name: systemd-journald.service
|
name: systemd-journald.service
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
- name: Ajoute l'indication de serveur syslog distant si elle n'est pas presente
|
handlers:
|
||||||
lineinfile:
|
- name: Restart systemd-journald.service
|
||||||
path: /etc/rsyslog.conf
|
service:
|
||||||
line: '*.* @192.168.0.42:514'
|
name: systemd-journald.service
|
||||||
create: yes
|
state: restarted
|
||||||
|
11
sio2/sisr2/40-Ansible/wiki.yml
Normal file
11
sio2/sisr2/40-Ansible/wiki.yml
Normal 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
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user