decorrelation SITE et sous domain
[lhc/ansible.git] / tasks / config_options_www.yml
1 - name: Bloc demande sous-domaine
2 block:
3
4 - name: Demande sous-domaine
5 ansible.builtin.pause:
6 prompt: 'quel sous-domaine faut-il configurer?(ex: www/gestion)'
7 echo: true
8 register: config_ss_domain_promp
9
10 - name: Definir config_ss_domain
11 ansible.builtin.set_fact:
12 config_ss_domain: "{{ config_ss_domain_promp.user_input | default(SITE) }}"
13
14 - name: Bloc demande des autres options
15 when: SITE != 'WP' and SITE != 'paheko'
16 block:
17
18 - name: Demande php
19 ansible.builtin.pause:
20 prompt: 'Faut-il configurer un pool PHP?(ex: oui/non)'
21 echo: true
22 register: config_php_promp
23
24 - name: Definir config_php
25 ansible.builtin.set_fact:
26 config_php: "{{ config_php_promp.user_input | default('non') }}"
27
28 - name: Demande bdd
29 ansible.builtin.pause:
30 prompt: 'Faut-il configurer une base de données SQL?(ex: mariadb/postgres/non)'
31 echo: true
32 register: config_bdd_promp
33
34 - name: Definir config_bdd
35 ansible.builtin.set_fact:
36 config_bdd: "{{ config_bdd_promp.user_input | default('non') }}"
37
38 - name: Demande sftp_key
39 ansible.builtin.pause:
40 prompt: 'besoin de configurer un accès SFTP pour ce compte (vide ou clé public)'
41 echo: true
42 register: sftp_key_promp
43
44 - name: Definir sftp_key
45 ansible.builtin.set_fact:
46 sftp_key: "{{ sftp_key_promp.user_input | default('non') }}"