VLC

This role was created to install vlc to jammy_desktop

General

This role consists of three main steps:

  • Uninstalls snap vlc

  • Only uninstalls snap vlc if snap_remove equals false

  • Snap_remove checks whether Snap is installed or not. Snap_remove == false → Snap is still installed → therefore remove Snap vlc
#snap remove vlc
- name: snap remove vlc
  community.general.snap:
    name: vlc
    state: absent
  become: true
  when: snap_remove == false

  • Running the equivalent of apt-get update
#equivalent of sudo apt update
- name: Run the equivalent of "apt-get update"
  ansible.builtin.apt:
    update_cache: yes

  • Installing the vlc apt package
#install vlc
- name: Install vlc
  ansible.builtin.apt:
    name: vlc
    state: present
  when: vlc_conf == true
  become: true

Dependencies

Role Dependencies

Package Dependencies

Role Variables

Name Type Default value Purpose Comment Role
vlc_conf Boolean false If set to true in the inventory file, vlc will be installed - jammy_vlc
snap_remove Boolean true Indicates if snapd is to be removed or installed This variable is from the jammy_snap role and under general in this wiki page it is explained on why this variable is used in this role jammy_snap

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: servers
  roles:
     - { role: username.rolename, x: 42 }

License

BSD

Author Information

Maintainer: Niels Dill

Support-Contact: s4d-linux-support@id.ethz.ch