solution
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
name: "{{ apache_package_name }}"
|
||||
state: present
|
||||
|
||||
- name: include data in vault
|
||||
include_vars: vault.yml
|
||||
|
||||
- name: configuration
|
||||
notify: reload httpd
|
||||
template:
|
||||
@@ -46,7 +49,7 @@
|
||||
htpasswd:
|
||||
path: "/etc/httpd/passwd"
|
||||
name: tom
|
||||
password: "123Soleil"
|
||||
password: "{{ apache_password }}""
|
||||
mode: 0640
|
||||
owner: root
|
||||
group: "apache"
|
||||
|
||||
1
ansible_apache_formation/vars/index.html
Normal file
1
ansible_apache_formation/vars/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<h1>hello World</h1>
|
||||
6
ansible_apache_formation/vars/vault.yml
Normal file
6
ansible_apache_formation/vars/vault.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
62356466386137373564343137303663633638313765383439366535306131646163333364626562
|
||||
3266356338306134396364326235343236383938336632360a306231373763346632303335653030
|
||||
32616265653139383338333635386461303563623661386437326339323033623162333766626130
|
||||
3936366666313163350a616263646135346632336639313564643662316265333737613736666162
|
||||
30636134653763353333666633316432303236343366616466333937663662623766
|
||||
Reference in New Issue
Block a user