AudelDiaz
6/2/2018 - 4:41 PM

playbook-docker-load-image

- hosts: cicd
  become: yes
  vars:
    user: vagrant
  tasks:
  - name: Add docker jenkins TGZ
    copy:
      src: ../jenkins-docker.tar.gz
      dest: /opt
      owner: vagrant
      group: users
      mode: 0644
  - name: Unzip docker jenkins TGZ
    command: gunzip /opt/jenkins-docker.tar.gz
  - name: Docker Load jenkins
    command: docker load --input /opt/jenkins-docker.tar