main.yml 181 B

12345678
  1. ---
  2. - name: Update all packages
  3. yum: name=* state=latest
  4. when: ansible_pkg_mgr == "yum"
  5. - name: Update all packages
  6. dnf: name=* state=latest
  7. when: ansible_pkg_mgr == "dnf"