Skip to content

Commit

Permalink
Merge pull request #560 from berndfinger/issue-555-sap_netweaver_prec…
Browse files Browse the repository at this point in the history
…onfigure

sap_netweaver_preconfigure: Support Ansible 2.16.1
  • Loading branch information
berndfinger authored Jan 3, 2024
2 parents e0dedd4 + a488972 commit f0a6a41
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
- name: Assert that enough swap space is configured
ansible.builtin.assert:
that:
- "ansible_swaptotal_mb >= {{ sap_netweaver_preconfigure_min_swap_space_mb }}"
- (ansible_swaptotal_mb | int) >= (sap_netweaver_preconfigure_min_swap_space_mb | int)
fail_msg: "FAIL: The system has only {{ ansible_swaptotal_mb }} MB of swap space configured,
which is less than the minimum required amount of {{ sap_netweaver_preconfigure_min_swap_space_mb }} MB for SAP NetWeaver!"
success_msg: "PASS: The system has {{ ansible_swaptotal_mb }} MB of swap space configured,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

- name: Assert that all required packages are installed
ansible.builtin.assert:
that:
- "'{{ line_item }}' in ansible_facts.packages"
that: line_item in ansible_facts.packages
fail_msg: "FAIL: Package '{{ line_item }}' is not installed!"
success_msg: "PASS: Package '{{ line_item }}' is installed."
with_items:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

- name: Ensure required packages for SAP NetWeaver are installed
ansible.builtin.assert:
that: "'{{ package }}' in ansible_facts.packages"
that: package in ansible_facts.packages
loop: "{{ __sap_netweaver_preconfigure_packages }}"
loop_control:
loop_var: package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

- name: Assert that tuned profile sap-netweaver is currently active
ansible.builtin.assert:
that: "__sap_netweaver_preconfigure_register_current_tuned_profile.stdout == 'sap-netweaver'"
that: __sap_netweaver_preconfigure_register_current_tuned_profile.stdout == 'sap-netweaver'
fail_msg: "FAIL: The tuned profile 'sap-netweaver' is currently not active!
Currently active profile: '{{ __sap_netweaver_preconfigure_register_current_tuned_profile.stdout }}'."
success_msg: "PASS: The tuned profile 'sap-netweaver' is currently active."
Expand Down

0 comments on commit f0a6a41

Please sign in to comment.