0

I am new to Nexus3 Artifact & I am trying to pull Docker image from nexus using ansible-playbook. For reference here I am adding ansible script:

- name: Pull Docker image
  maven_artifact:
    group_id: ubuntu
    artifact_id: ubuntu  
    verify_checksum: always
    extension: docker
    version: 3.8.1
    repository_url: 'http://localhost:1839'
    username: admin
    password: *****
    dest: /tmp/python.docker

P.S. i dont know what to give for artifactid and groupid

  • What did you try so far ? Show us the code your have written, describe the errors/problems you are facing and tell use where your are stuck. – Zeitounator Apr 08 '20 at 11:18
  • Thanks for the approach, I have added ansible script. @Zeitounator – Richard Rittu Apr 08 '20 at 13:10
  • 1
    This does not make any sense. You are talking about docker image and you are using maven_artifact as a module. What are you trying to get exactly ? maven_artifact is to get maven artifacts. To get a docker image, user [docker_image](https://docs.ansible.com/ansible/latest/modules/docker_image_module.html) – Zeitounator Apr 08 '20 at 14:18
  • I thought only for Dockerhub Registry docker_image is used so I thought of getting alternate for nexus so that I was confused. Thank you so much for the clarification so i can use docker_image module to pull/push to any registries right ?! – Richard Rittu Apr 08 '20 at 14:38
  • Exactly as you do with `docker` on your command line. – Zeitounator Apr 08 '20 at 14:48
  • THANK YOU SOO MUCH !! :) @Zeitounator – Richard Rittu Apr 08 '20 at 14:52

0 Answers0