Outils pour utilisateurs

Outils du site


tech:exemple_git_clone_avec_ansible

Ceci est une ancienne révision du document !


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
tech/exemple_git_clone_avec_ansible.1784206053.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki