AnsiblePilot — Ansible Automation Platform and Enterprise Ansible

AnsiblePilot covers Red Hat Ansible Automation Platform (AAP) and enterprise Ansible: install and upgrade paths, Event-Driven Ansible, security and day-2 operations, plus Luca Berton's books, videos and training.

Popular Topics

About Luca Berton

Luca Berton is an Ansible automation expert, author of 9 technical books published by Apress and Leanpub, 4 of them on Ansible, including "Ansible for VMware by Examples" and "Ansible for Kubernetes by Example", and creator of the Ansible Pilot YouTube channel. He shares practical automation knowledge through tutorials, books, and video courses to help IT professionals and DevOps engineers master infrastructure automation.

Install Zoom flatpak in RedHat-like systems - Ansible module flatpak — Video Tutorial

How to automate the installation of Zoom flatpak system-wide in RedHat-like systems using Ansible module flatpak.

Watch on YouTube · Read the written article

Tutorial summary

What you'll learn

  • How to install Zoom flatpak in RedHat-like systems with Ansible?
  • Ansible install Zoom flatpak in RedHat-like systems
  • Parameters
  • Links
  • code
  • execution
  • idempotency
  • before execution
  • after execution
  • Conclusion
How to install Zoom flatpak in RedHat-like systems with Ansible? Ansible install Zoom flatpak in RedHat-like systems - `community.general.flatpak` - Manage flatpaks Today we are going to talk about the Ansible module `flatpak`. The full name is `community.general.flatpak`, it's part of `community.general` modules maintained by the Ansible Community. The purpose of the `flatpak` module is to Manage flatpaks in the target system. Parameters - name _string_ - flatpak name - state _string_ - present/absent - method _string_ - system/user - remote _string_ - flathub - no_dependencies _string_ - no/yes - executable _string_ - flatpak Let me summarize the parameters of `flatpak` module. The only required is "name", where you specify the flatpak name to install or remove. The parameter "state" specifies if you would like to perform the install action ("present" option) or the remove action ("absent" option). The parameter "method" specifies if you would like to install the flatpak system-wide (default) or only for the current user. The following parameters are more for advanced users. For example specify a different source with `remote` parameter other than the default "flathub"; not install the dependency "no_dependencies" parameter or if the `executable` is different than the usual `flatpak`. Links - [Flatpak technology](https://flatpak.org/) - [Zoom flatpak](https://flathub.org/apps/us.zoom.Zoom) ## Playbook How to install Zoom flatpak in RedHat-like systems with Ansible Playbook. code ```yaml --- - name: flatpak module Playbook hosts: all become: true gather_facts: false tasks: - name: flatpak present ansible.builtin.yum: name: flatpak state: present - name: flathub flatpak repo community.general.flatpak_remote: name: flathub state: present flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo method: system - name: install Zoom via flatpak community.general.flatpak: name: us.zoom.Zoom state: present method: system ``` execution ```bash ansible-pilot $ ansible-playbook -i virtualmachines/fedora35/inventory container/flatpak_redhat.yml PLAY [flatpak module Playbook] ************************************************************************ TASK [flatpak present] **************************************************************************** changed: [fedora.example.com] TASK [flathub flatpak repo] *********************************************************************** changed: [fedora.example.com] TASK [install Zoom via flatpak] ******************************************************************* changed: [fedora.example.com] PLAY RECAP **************************************************************************************** fedora.example.com : ok=3 changed=3 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 ansible-pilot $ ``` idempotency ```bash ansible-pilot $ ansible-playbook -i virtualm

About this tutorial

  • Author: Luca Berton
  • Difficulty: Advanced
  • Read time: 3 min
  • Category: installation

Topics covered

Related video tutorials