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
|
||||
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
|
||||
|
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