1 - name: Bloc demande sous-domaine
5 - name: Demande sous-domaine
7 prompt: 'quel sous-domaine faut-il configurer?(ex: www/gestion)'
9 register: config_ss_domain_promp
11 - name: Definir config_ss_domain
12 ansible.builtin.set_fact:
13 config_ss_domain: "{{ config_ss_domain_promp.user_input | default(SITE) }}"
15 - name: Bloc demande des autres options
16 when: SITE != 'paheko' or SITE != 'nuage' # and SITE != 'WP'
20 ansible.builtin.pause:
21 prompt: 'Faut-il configurer un pool PHP?(ex: oui/non)'
23 register: config_php_promp
25 - name: Definir config_php
26 ansible.builtin.set_fact:
27 config_php: "{{ config_php_promp.user_input | default('non') }}"
30 ansible.builtin.pause:
31 prompt: 'Faut-il configurer une base de données SQL?(ex: mariadb/postgres/non)'
33 register: config_bdd_promp
35 - name: Definir config_bdd
36 ansible.builtin.set_fact:
37 config_bdd: "{{ config_bdd_promp.user_input | default('non') }}"
39 - name: Demande sftp_key
40 ansible.builtin.pause:
41 prompt: 'besoin de configurer un accès SFTP pour ce compte (vide ou clé public)'
43 register: sftp_key_promp
45 - name: Definir sftp_key
46 ansible.builtin.set_fact:
47 sftp_key: "{{ sftp_key_promp.user_input | default('non') }}"