I want to pull multiple repositories via ansible playbook but with if condition matches,
tasks: - name: pull from git abc/123 git: repo: git@gitlab.com:xyz.git dest: var/www/abc/123 update: yes version: $sprint_name
tasks: - name: pull from git abc/234 git: repo: git@gitlab.com:xyz.git dest: /var/www/234 update: yes version: $sprint_name
Now here i want to pass "123" or "234" as variable and if user want to pull only "123" or only "234" user should be able to do it
Aucun commentaire:
Enregistrer un commentaire