From a6d95b9c230e91369c729b4127dfa1f436f6af76 Mon Sep 17 00:00:00 2001 From: Thomas Constans Date: Fri, 28 Sep 2018 13:18:28 +0200 Subject: [PATCH] 17.1: mise au propre des variables dinventaire --- 17.1_variable/host_vars/cible1 | 18 ++++++++++++++++++ 17.1_variable/host_vars/cible2 | 9 +++++++++ 17.1_variable/myapache/vars/main.yml | 7 +------ 3 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 17.1_variable/host_vars/cible1 create mode 100644 17.1_variable/host_vars/cible2 diff --git a/17.1_variable/host_vars/cible1 b/17.1_variable/host_vars/cible1 new file mode 100644 index 0000000..d2699a6 --- /dev/null +++ b/17.1_variable/host_vars/cible1 @@ -0,0 +1,18 @@ +apache_vhosts: +- servername: cines.fr + serveralias: + - www.cines.fr + - cines.org + - www.cines.org + documentroot: /var/www/html/cines.fr + accesslog: /var/log/httpd/access_cines.fr_log + errorlog: /var/log/httpd/error_cines.fr_log +- servername: thomas.fr + serveralias: + - www.thomas.fr + - thomas.com + - www.thomas.cm + documentroot: /var/www/html/thomas.fr + accesslog: /var/log/httpd/access_thomas.fr_log + errorlog: /var/log/httpd/error_thomas.fr_log + documentrootoptions: indexes \ No newline at end of file diff --git a/17.1_variable/host_vars/cible2 b/17.1_variable/host_vars/cible2 new file mode 100644 index 0000000..b835467 --- /dev/null +++ b/17.1_variable/host_vars/cible2 @@ -0,0 +1,9 @@ +apache_vhosts: +- servername: orsys.fr + serveralias: + - www.orsys.fr + - orsys.org + - www.orsys.org + documentroot: /var/www/html/orsys.fr + accesslog: /var/log/httpd/access_orsys.fr_log + errorlog: /var/log/httpd/error_orsys.fr_log \ No newline at end of file diff --git a/17.1_variable/myapache/vars/main.yml b/17.1_variable/myapache/vars/main.yml index 2cec6bd..8c4b0a1 100644 --- a/17.1_variable/myapache/vars/main.yml +++ b/17.1_variable/myapache/vars/main.yml @@ -1,8 +1,3 @@ --- # vars file for myapache -http_port: 80 -servername: orsys.fr -serveralias: "www.{{ servername }}" -documentroot: /var/www/html/orsys.fr -accesslog: /var/log/httpd/access_orsys.fr_log -errorlog: /var/log/httpd/error_orsys.fr_log \ No newline at end of file +http_port: 80 \ No newline at end of file