create_lx_image.yml 753 B

1234567891011121314151617181920
  1. ---
  2. - hosts: lx-builder-host
  3. remote_user: root
  4. vars_files: [ vars.yml ]
  5. tasks:
  6. - debug:
  7. msg: "scp -r trv@lx-builder:/tmp/debian-lx-brand-image-builder /tmp/"
  8. - shell: "./create-lx-image -t /tmp/debian-lx-brand-image-builder/{{ image_name_short|quote }}-{{ ansible_date_time.year }}{{ ansible_date_time.month }}{{ ansible_date_time.day }}.tar.gz -k {{ lx_kernel_version }} -m {{ lx_min_platform }} -i {{ image_name_short|quote }} -d {{ image_description|quote }}"
  9. args:
  10. chdir: /tmp/debian-lx-brand-image-builder/
  11. removes: /tmp/debian-lx-brand-image-builder/create-lx-image
  12. register: lx
  13. - debug: var=lx
  14. - debug:
  15. msg: "import image with: imgadm install -m XXX.json -f XXX.zfs.gz"