We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following task works only on RHEL8, gets skipped on RHEL9
- name: Disable PostgreSQL module become: true ansible.builtin.copy: dest: /etc/dnf/modules.d/postgresql.module owner: root group: root mode: 0644 content: | [postgresql] name=postgresql stream= profiles= state=disabled when: - ansible_os_family == 'RedHat' - ansible_distribution_major_version | int == 8
Should be: Alternatively skip the major check and target only if pkg_mgr | lower == 'dnf' :
- name: Disable PostgreSQL module become: true ansible.builtin.copy: dest: /etc/dnf/modules.d/postgresql.module owner: root group: root mode: 0644 content: | [postgresql] name=postgresql stream= profiles= state=disabled when: ansible_facts['distribution_major_version'] | int in [8, 9]
The text was updated successfully, but these errors were encountered:
@EmptyByte Thanks for raising this issue , Would you mind raising this as a Pull Request, Happy to take this in upcoming releases :)
Sorry, something went wrong.
No branches or pull requests
The following task works only on RHEL8, gets skipped on RHEL9
Should be:
Alternatively skip the major check and target only if pkg_mgr | lower == 'dnf' :
The text was updated successfully, but these errors were encountered: