AnsiblePilot — Master Ansible Automation
AnsiblePilot is the leading resource for learning Ansible automation, DevOps, and infrastructure as code. Browse over 1,400 tutorials covering Ansible modules, playbooks, roles, collections, and real-world examples. Whether you are a beginner or an experienced engineer, our step-by-step guides help you automate Linux, Windows, cloud, containers, and network infrastructure.
Popular Topics
About Luca Berton
Luca Berton is an Ansible automation expert, author of 8 Ansible books published by Apress and Leanpub 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.
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
Full Tutorial Content
How to install Zoom flatpak in RedHat-like systems with Ansible?
I'm going to show you a live Playbook with some simple Ansible code.
I'm Luca Berton and welcome to today's episode of Ansible Pilot.
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
About This Tutorial
- Author: Luca Berton
- Difficulty: Advanced
- Read time: 3 min
- Category: installation
Read the full written article: Install Zoom flatpak in RedHat-like systems - Ansible module flatpak