Premier commit
This commit is contained in:
3
roles/s-lb-web-ab/files/.my.cnf
Normal file
3
roles/s-lb-web-ab/files/.my.cnf
Normal file
@@ -0,0 +1,3 @@
|
||||
[client]
|
||||
user=root
|
||||
password=root
|
4
roles/s-lb-web-ab/files/compter.bash
Normal file
4
roles/s-lb-web-ab/files/compter.bash
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "" > /var/log/apache2/access.log
|
||||
watch -n 0 wc -l /var/log/apache2/access.log
|
3
roles/s-lb-web-ab/handlers/main.yml
Normal file
3
roles/s-lb-web-ab/handlers/main.yml
Normal file
@@ -0,0 +1,3 @@
|
||||
---
|
||||
- name: restart apache2
|
||||
service: name=apache2 state=restarted
|
20
roles/s-lb-web-ab/tasks/main.yml
Normal file
20
roles/s-lb-web-ab/tasks/main.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
- name: Install apache2 php php5-mysql
|
||||
apt:
|
||||
name:
|
||||
- apache2
|
||||
- php
|
||||
- php-mysql
|
||||
state: present
|
||||
|
||||
- name: copie exports pour partage nfs wordpress
|
||||
copy: src=compter.bash dest=/root
|
||||
|
||||
- name: Changement de permission pour compter.bash
|
||||
shell: chmod a+x /root/compter.bash
|
||||
|
||||
#- name: Envoi d'index dans /var/www/
|
||||
# copy: src=index.html dest=/var/www/
|
||||
|
||||
#- name: Install glusterfs client
|
||||
# apt: pkg=glusterfs-client state=present update_cache=yes
|
Reference in New Issue
Block a user