Skip to content

Commit

Permalink
sap_*: add noqa to sles python3-rpm
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-freeman committed May 6, 2024
1 parent e99de17 commit e9ea664
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---

# Reasons for noqa:
# - command-instead-of-module: Use command to install package required for Ansible Module package/package_facts
- name: For SLES ensure OS Package for Python Lib of rpm bindings is enabled for System Python
ansible.builtin.command: zypper install --no-confirm --auto-agree-with-licenses python3-rpm
ansible.builtin.command: set -o pipefail && zypper install --no-confirm --auto-agree-with-licenses python3-rpm # noqa: command-instead-of-module
when: ansible_os_family == "Suse"

# See further:
Expand Down
4 changes: 3 additions & 1 deletion roles/sap_general_preconfigure/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@
tags:
- always

# Reasons for noqa:
# - command-instead-of-module: Use command to install package required for Ansible Module package/package_facts
- name: For SLES ensure OS Package for Python Lib of rpm bindings is enabled for System Python
ansible.builtin.command: zypper install --no-confirm --auto-agree-with-licenses python3-rpm
ansible.builtin.command: set -o pipefail && zypper install --no-confirm --auto-agree-with-licenses python3-rpm # noqa: command-instead-of-module
when: ansible_os_family == "Suse"

# required for installation and configuration tasks:
Expand Down
4 changes: 3 additions & 1 deletion roles/sap_hana_preconfigure/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@
__sap_hana_preconfigure_fact_ansible_distribution_minor_version: '{{ ansible_distribution_version.split(".")[1] }}'
when: ansible_distribution == 'RedHat'

# Reasons for noqa:
# - command-instead-of-module: Use command to install package required for Ansible Module package/package_facts
- name: For SLES ensure OS Package for Python Lib of rpm bindings is enabled for System Python
ansible.builtin.command: zypper install --no-confirm --auto-agree-with-licenses python3-rpm
ansible.builtin.command: set -o pipefail && zypper install --no-confirm --auto-agree-with-licenses python3-rpm # noqa: command-instead-of-module
when: ansible_os_family == "Suse"

# required for installation and configuration tasks:
Expand Down
4 changes: 3 additions & 1 deletion roles/sap_netweaver_preconfigure/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
assert_prefix: "assert-"
when: sap_netweaver_preconfigure_assert | d(false)

# Reasons for noqa:
# - command-instead-of-module: Use command to install package required for Ansible Module package/package_facts
- name: For SLES ensure OS Package for Python Lib of rpm bindings is enabled for System Python
ansible.builtin.command: zypper install --no-confirm --auto-agree-with-licenses python3-rpm
ansible.builtin.command: set -o pipefail && zypper install --no-confirm --auto-agree-with-licenses python3-rpm # noqa: command-instead-of-module
when: ansible_os_family == "Suse"

# required for installation and configuration tasks:
Expand Down

0 comments on commit e9ea664

Please sign in to comment.