- name: Inclure le configuration SFTP
ansible.builtin.include_tasks: tasks/config_sftp.yml
- when: sftp == 'oui'
+ when: sftp_key =! '' and sftp_key =! 'non'
config_ss_domain: "{{ config_ss_domain_promp.user_input | default(SITE) }}"
- name: Bloc demande des autres options
- when: SITE != 'paheko' #and SITE != 'WP'
+ when: SITE != 'paheko' # and SITE != 'WP'
block:
- name: Demande php
owner: "site_{{ SIGLE }}_{{ SITE }}"
group: "site_{{ SIGLE }}_{{ SITE }}"
mode: '600'
- when: sftp_key is defined
# verif le serveur openssh est bien config et sinon le faire? + reload