Skip to content

Commit

Permalink
Shorter task names.
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-de-bock committed Sep 20, 2023
1 parent 27f8192 commit 90cdd06
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tasks/assert.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
---

- name: assert | Test if java_vendor is set correctly
- name: assert | Test java_vendor
ansible.builtin.assert:
that:
- java_vendor is defined
- java_vendor is string
- java_vendor in [ "openjdk", "oracle" ]
quiet: yes

- name: assert | Test if java_type is set correctly
- name: assert | Test java_type
ansible.builtin.assert:
that:
- java_type is defined
- java_type is string
- java_type in [ "jre", "jdk" ]
quiet: yes

- name: assert | Test if java_version is set correctly
- name: assert | Test java_version
ansible.builtin.assert:
that:
- java_version is number
Expand All @@ -25,15 +25,15 @@
when:
- java_version is defined

- name: assert | Test if java_format is set correctly
- name: assert | Test java_format
ansible.builtin.assert:
that:
- java_format is defined
- java_format is string
- java_format in [ "rpm", "targz" ]
quiet: yes

- name: assert | Test if java_rpm_source is set correctly
- name: assert | Test java_rpm_source
ansible.builtin.assert:
that:
- java_rpm_source is defined
Expand All @@ -44,7 +44,7 @@
- java_vendor == "oracle"
- java_format == "rpm"

- name: assert | Test if java_jce is set correctly
- name: assert | Test java_jce
ansible.builtin.assert:
that:
- java_jce is defined
Expand All @@ -54,7 +54,7 @@
- java_vendor == "oracle"
- java_version == 8

- name: assert | Test if java_install_directory is set correctly
- name: assert | Test java_install_directory
ansible.builtin.assert:
that:
- java_install_directory is defined
Expand Down

0 comments on commit 90cdd06

Please sign in to comment.