Skip to content

Commit

Permalink
Disable custom_config_scenario downstream
Browse files Browse the repository at this point in the history
  • Loading branch information
rpelisse committed Dec 4, 2024
1 parent 6d4a6a3 commit f5046ca
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 20 deletions.
13 changes: 3 additions & 10 deletions molecule/custom_config_file/converge.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
---
- name: Converge
hosts: all
vars_files:
- vars.yml
- ../apps.yml
collections:
- middleware_automation.wildfly
roles:
- role: wildfly_install
- role: wildfly_systemd
- ansible.builtin.import_playbook: playbook.yml
when:
- not eap_enable is defined
11 changes: 11 additions & 0 deletions molecule/custom_config_file/playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
- name: Converge
hosts: all
vars_files:
- vars.yml
- ../apps.yml
collections:
- middleware_automation.wildfly
roles:
- role: wildfly_install
- role: wildfly_systemd
2 changes: 2 additions & 0 deletions molecule/custom_config_file/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@
serole: object_r
setype: usr_t
seuser: system_u
when:
- not eap_version is defined

- import_playbook: ../prepare.yml
24 changes: 14 additions & 10 deletions molecule/custom_config_file/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@
collections:
- middleware_automation.wildfly
tasks:
- name: "Include apps verification"
ansible.builtin.include_tasks: ../verify_apps.yml
when:
- wildfly_apps is defined and wildfly_apps | length > 0
- name: "Verify only if scenario is running upstream"
block:
- name: "Include apps verification"
ansible.builtin.include_tasks: ../verify_apps.yml
when:
- wildfly_apps is defined and wildfly_apps | length > 0

- name: "Verify that state is consistent"
ansible.builtin.include_role:
name: wildfly_validation
vars:
- eap_validation_queries:
- { query: '/system-property=test:read-attribute(name=value)', expected_result: 'testvalue', expected_result_undefined: False}
- name: "Verify that state is consistent"
ansible.builtin.include_role:
name: wildfly_validation
vars:
- eap_validation_queries:
- { query: '/system-property=test:read-attribute(name=value)', expected_result: 'testvalue', expected_result_undefined: False}
when:
- not eap_enable is defined

0 comments on commit f5046ca

Please sign in to comment.