Skip to content

Commit

Permalink
test verifying of installed asciidoctor version before plantuml and a…
Browse files Browse the repository at this point in the history
…sciidoctor-pdf installation
  • Loading branch information
capsulecorplab committed Sep 30, 2024
1 parent 249d144 commit 680c49d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,16 @@
- name: Run gem install for asciidoctor
shell:
cmd: "gem install asciidoctor -v {{ asciidoctor_version }}"
- name: Get asciidoctor version
shell: asciidoctor --version | grep Asciidoctor | awk '{ print $2 }'
register: installed_asciidoctor_version
- name: Display asciidoctor version
debug:
msg: "ASCII Doctor = {{ installed_asciidoctor_version.stdout }}"
- name: Test asciidoctor version
fail:
msg: "ASCII Doctor Version Error: Expected {{ asciidoctor_version }} | Found {{ installed_asciidoctor_version.stdout }}"
when: installed_asciidoctor_version.stdout != asciidoctor_version
- name: Install hexapdf dependencies
apt:
name: libssl-dev
Expand All @@ -442,16 +452,6 @@
- name: Install PlantUML and PDF support
shell:
cmd: gem install asciidoctor-diagram rghost hexapdf text-hyphen rouge pygments.rb coderay asciidoctor-pdf
- name: Get asciidoctor version
shell: asciidoctor --version | grep Asciidoctor | awk '{ print $2 }'
register: installed_asciidoctor_version
- name: Display asciidoctor version
debug:
msg: "ASCII Doctor = {{ installed_asciidoctor_version.stdout }}"
- name: Test asciidoctor version
fail:
msg: "ASCII Doctor Version Error: Expected {{ asciidoctor_version }} | Found {{ installed_asciidoctor_version.stdout }}"
when: installed_asciidoctor_version.stdout != asciidoctor_version

-
# install m30pm
Expand Down

0 comments on commit 680c49d

Please sign in to comment.