Exemple git clone avec Ansible

- name: Git clone ansible.builtin.git: repo: https://{{ gituser }}:{{ gitpassword }}@{{ giturl }} dest: /tmp/plop/ single_branch: true version: "{{ GIT_VERSION }}" depth: 1 environment: GIT_SSL_NO_VERIFY: "true" # GIT_TERMINAL_PROMPT: 0 vars: gituser: "{{ lookup('env', 'GIT_USER') | urlencode }}" gitpassword: "{{ lookup('env', 'GIT_PASSWORD') | urlencode | replace('/', '%2f') }}" giturl: gitlab.acme.local/plop