delete vars_prompt and add vault
This commit is contained in:
@@ -3,9 +3,5 @@
|
||||
hosts: test
|
||||
user: ansible
|
||||
become: true
|
||||
vars_prompt:
|
||||
- name: httpasswd
|
||||
prompt: htpasswd protected area password
|
||||
private: yes
|
||||
roles:
|
||||
- myapache5
|
||||
|
||||
12
26_synthese/host_vars/cible1
Normal file
12
26_synthese/host_vars/cible1
Normal file
@@ -0,0 +1,12 @@
|
||||
apache_vhosts:
|
||||
- servername: orsys.fr
|
||||
serveralias: www.orsys.fr
|
||||
documentroot: /var/www/html/orsys.fr
|
||||
accesslog: "{{ apache_log_dir }}/access_orsys.fr_log"
|
||||
errorlog: "{{ apache_log_dir }}/error_orsys.fr_log"
|
||||
- servername: thomas.fr
|
||||
serveralias: www.thomas.fr
|
||||
documentroot: /var/www/html/thomas.fr
|
||||
accesslog: "{{ apache_log_dir }}/access_thomas.fr_log"
|
||||
errorlog: "{{ apache_log_dir }}/error_thomas.fr_log"
|
||||
documentrootoptions: indexes
|
||||
3
26_synthese/inventory
Normal file
3
26_synthese/inventory
Normal file
@@ -0,0 +1,3 @@
|
||||
[test]
|
||||
cible1
|
||||
cible2
|
||||
@@ -4,6 +4,9 @@
|
||||
tags: http
|
||||
include_vars: "{{ ansible_distribution|lower }}.yml"
|
||||
|
||||
- name: import vault data
|
||||
include_vars: myvault.yml
|
||||
|
||||
- name: install apache
|
||||
tags: httpd
|
||||
package:
|
||||
|
||||
@@ -1,15 +1,3 @@
|
||||
---
|
||||
# vars file for myapache
|
||||
http_port: 80
|
||||
apache_vhosts:
|
||||
- servername: ORSYS.Fr
|
||||
serveralias: www.orsys.fr
|
||||
documentroot: /var/www/html/orsys.fr
|
||||
accesslog: "{{ apache_log_dir }}/access_orsys.fr_log"
|
||||
errorlog: "{{ apache_log_dir }}/error_orsys.fr_log"
|
||||
- servername: thomas.fr
|
||||
serveralias: www.thomas.fr
|
||||
documentroot: /var/www/html/thomas.fr
|
||||
accesslog: "{{ apache_log_dir }}/access_thomas.fr_log"
|
||||
errorlog: "{{ apache_log_dir }}/error_thomas.fr_log"
|
||||
documentrootoptions: indexes
|
||||
http_port: 80
|
||||
6
26_synthese/myapache5/vars/myvault.yml
Normal file
6
26_synthese/myapache5/vars/myvault.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
65396436653861633130663634636339613933383439356263373233616131626263323262346565
|
||||
3733396333333636623034656436633136356139383539350a643965663233323631393561663862
|
||||
64343232366233653939643336623232656530373166656638643031356165323636653061373334
|
||||
3636363766393739360a343933306139636632393439333933343963363732616362366564386434
|
||||
31656334623334316465653230393935646535623531386133636362633163356664
|
||||
Reference in New Issue
Block a user