main.ymlΒΆ

---
- name: "πŸ”„ update | dispatch to per-package-family task file"
  block:
    - include_tasks: "{{ _update_distro_file }}"
      vars:
        _update_distro_file: >-
          {{
            {
              'Archlinux': 'arch.yml',
              'Debian':    'debian.yml',
              'Ubuntu':    'debian.yml',
              'Fedora':    'fedora.yml',
              'CentOS':    'centos.yml',
            }[ansible_facts['distribution']] | default('unsupported.yml')
          }}

    - include_tasks: utils/once/flag.yml
  when: run_once_update is not defined