#246 Add YUM 4 based OS.
Merged 5 years ago by astepano. Opened 5 years ago by astepano.

@@ -21,8 +21,8 @@ 

        {{ ansible_pkg_mgr == 'dnf' }}

      is_rhel8_based: >-

        {{

-           ( ['ansible_distribution'] |

-           intersect(['RedHat', 'CentOS']) | bool ) and

+           ( [ansible_distribution] |

+           intersect(['RedHat', 'CentOS']) | length | bool ) and

            ansible_distribution_version|int == 8

        }}

  

@@ -21,8 +21,8 @@ 

        {{ ansible_pkg_mgr == 'dnf' }}

      is_rhel8_based: >-

        {{

-           ( ['ansible_distribution'] |

-           intersect(['RedHat', 'CentOS']) | bool ) and

+           ( [ansible_distribution] |

+           intersect(['RedHat', 'CentOS']) | length | bool ) and

            ansible_distribution_version|int == 8

        }}

  

@@ -21,7 +21,9 @@ 

        {{

           'rpm-ostree' if (is_atomic and

                               (ansible_pkg_mgr == 'unknown' or

-                               ansible_pkg_mgr == 'atomic_container')) else ansible_pkg_mgr

+                               ansible_pkg_mgr == 'atomic_container'))

+          else 'yum4' if is_rhel8_based

+          else ansible_pkg_mgr

        }}

  

  - debug: