Skip to content

Commit

Permalink
Fix test for verifying installed asciidoctor version
Browse files Browse the repository at this point in the history
  • Loading branch information
capsulecorplab committed Oct 26, 2024
1 parent 50cf2d7 commit e9724eb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,6 @@

vars:
asciidoctor_version: 2.0.23
asciidoctor_version_expected: "{{ asciidoctor_version }}[.]"
public_suffix_version: 6.0.1

tasks:
Expand All @@ -437,15 +436,15 @@
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 | sed 's/[[:alpha:]|(|[:space:]]//g' | sed 's/[*~://]//g'
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_expected }} | Found {{ installed_asciidoctor_version.stdout }}"
when: installed_asciidoctor_version.stdout != asciidoctor_version_expected
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 e9724eb

Please sign in to comment.