{{tag>Brouillon Git Ansible}} # Exemple git clone avec Ansible ~~~yaml - name: Git clone ansible.builtin.git: repo: https://{{ git_user }}:{{ git_password }}@{{ git_url }} dest: /tmp/plop/ single_branch: true version: "{{ git_version }}" depth: 1 environment: GIT_SSL_NO_VERIFY: "true" # GIT_TERMINAL_PROMPT: 0 vars: git_user: "{{ lookup('env', 'GIT_USER') | urlencode }}" git_password: "{{ lookup('env', 'GIT_PASSWORD') | urlencode | replace('/', '%2f') }}" git_url: gitlab.acme.local/plop git_version: "{{ lookup('env', 'GIT_VERSION') }}" ~~~