Skip to content

Commit

Permalink
attempt to fix test for verifying installed asciidoctor version
Browse files Browse the repository at this point in the history
  • Loading branch information
capsulecorplab committed Sep 29, 2024
1 parent b6624b0 commit 249d144
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 @@ -418,7 +418,6 @@

vars:
asciidoctor_version: 2.0.18
asciidoctor_version_expected: "{{ asciidoctor_version }}[.]"
public_suffix_version: 5.1.1
css_parser_version: 1.17.1

Expand All @@ -444,15 +443,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 249d144

Please sign in to comment.