--- - block: - name: Create group '{{ jellyfin_group }}' group: name: "{{ jellyfin_group }}" state: present gid: "{{ jellyfin_gid | default(omit) }}" - name: Create user '{{ jellyfin_user }}' user: comment: jellyfin name: "{{ jellyfin_user }}" home: "{{ jellyfin_user_home }}" uid: "{{ jellyfin_uid | default(omit) }}" group: "{{ jellyfin_group }}" groups: "{{ jellyfin_extra_groups | join(',') }}" - name: Add .Net repository yum_repository: name: packages-microsoft-com-prod description: RPMforge YUM repo file: Dotnet-Dev baseurl: "https://packages.microsoft.com/yumrepos/microsoft-rhel7.3-prod/" enabled: yes gpgcheck : yes gpgkey: https://packages.microsoft.com/keys/microsoft.asc - name: Install dependencies package: name: "{{ item }}" state: present loop: - "{{ jellyfin_dependencies }}" - dotnet-sdk-2.2 become: True become_user: root