---

- name: make sure we have default-jdk
  apt: name=default-jdk

- name: install lame
  apt: name=lame

- name: copy deb
  copy: src="{{ pipeline1_deb }}" dest=/tmp
  register: copy_deb

- name: install pipeline1
  command: dpkg --skip-same-version -i "/tmp/{{ pipeline1_deb }}"
  when: copy_deb.changed

# copy the sbs specific dtbook2latex so that it is picked up by the transformer
- name: copy dtbook2latex_sbs.xsl
  command: cp dtbook2latex_sbs.xsl dtbook2latex.xsl
           chdir=/usr/lib/daisy-pipeline/transformers/se_tpb_dtbook2latex
  when: copy_deb.changed


---

- name: make sure we have default-jdk
  apt: name=default-jdk

- name: install lame
  apt: name=lame

- name: copy deb
  copy: src="{{ pipeline1_deb }}" dest=/tmp
  register: copy_deb

- name: install pipeline1
  apt: deb="/tmp/{{ pipeline1_deb }}"
  when: copy_deb.changed

# copy the sbs specific dtbook2latex so that it is picked up by the transformer
- name: copy dtbook2latex_sbs.xsl
  command: cp dtbook2latex_sbs.xsl dtbook2latex.xsl
           chdir=/usr/lib/daisy-pipeline/transformers/se_tpb_dtbook2latex
  when: copy_deb.changed


Use deb module instead of command with dpkg
Use deb module instead of command with dpkg
