---

- tags:
    - setup-all
    - setup-mx-puppet-instagram
    - install-all
    - install-mx-puppet-instagram
  block:
    - when: matrix_mx_puppet_instagram_enabled | bool
      ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"

    - when: matrix_mx_puppet_instagram_enabled | bool
      ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"

- tags:
    - setup-all
    - setup-mx-puppet-instagram
  block:
    - when: not matrix_mx_puppet_instagram_enabled | bool
      ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
