# installing flatpaks

**URL:** <https://forum.ansible.com/t/installing-flatpaks/33364>\
**Category:** Ansible Project\
**Tags:** fedora\
**Created:** [July 9, 2020, 9:14pm UTC](https://forum.ansible.com/t/installing-flatpaks/33364 "2020-07-09T21:14:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Meyer1](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@Andrew\_Meyer1](https://forum.ansible.com/u/Andrew_Meyer1)\
**Post date:** [July 9, 2020, 9:14pm UTC](https://forum.ansible.com/t/installing-flatpaks/33364/1 "2020-07-09T21:14:33Z")

</div>

I am trying to install a list of flatpaks on my Fedora Workstation and getting the following errors when I run my playbook:

`TASK [Install the flatpak packages from flathub for current user] ************************************************************************************************************************************************* task path: /home/user/Documents/automation/ansible/playbooks/roles/fedora-workstation/tasks/flatpakpackages.yml:1 fatal: [10.150.1.172]: FAILED! => { "msg": "The task includes an option with an undefined variable. The error was: 'item' is undefined\n\nThe error appears to be in '/home/user/Documents/automation/ansible/playbooks/roles/fedora-workstation/tasks/flatpakpackages.yml': line 1, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Install the flatpak packages from flathub for current user\n ^ here\n" }`

Here is the list of flatpaks

`

- name: Install the flatpak packages from flathub for current user  
flatpak:  
name: “{{ item }}”  
state: present  
method: user  
with\_items:
- com.bluejeans.BlueJeans
- us.zoom.Zoom
- com.discordapp.Discord
- com.dropbox.Client
- com.microsoft.Teams
- org.signal.Signal
- ws.openarena.OpenArena
- net.openra.OpenRA
- org.fedoraproject.MediaWriter
- org.raspberrypi.rpi-imager
- io.neovim.nvim
- com.anydesk.Anydesk
- io.dbeaver.DBeaverCommunity
- com.github.alecaddd.sequeler
- com.notepadqq.Notepadqq
- org.qownnotes.QOwnNotes
- io.brackets.Brackets
- io.atom.Atom
- org.gnome.Boxes
- com.jetbrains.PyCharm-Community
- com.sublimetext.three
- com.visualstudio.code

`

Kind of lost at where the issue is.

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [July 9, 2020, 9:19pm UTC](https://forum.ansible.com/t/installing-flatpaks/33364/2 "2020-07-09T21:19:27Z")

</div>

> I am trying to install a list of flatpaks on my Fedora Workstation and getting the following errors when I run my playbook:
> 
> \>  
> TASK [Installthe flatpak packages fromflathub forcurrent  
> user]\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> task path:/home/user/Documents/automation/ansible/playbooks/roles/fedora-workstation/tasks/flatpakpackages.yml:1  
> fatal:[10.150.1.172]:FAILED!=\>{  
> "msg":"The task includes an option with an undefined variable. The error was: 'item' is undefined\n\nThe error  
> appears to be in '/home/user/Documents/automation/ansible/playbooks/roles/fedora-workstation/tasks/flatpakpackages.yml':  
> line 1, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears  
> to be:\n\n\n- name: Install the flatpak packages from flathub for current user\n ^ here\n"  
> }  
> \>
> 
> Here is the list of flatpaks  
> \>  
> -name:Installthe flatpak packages fromflathub forcurrent user  
> flatpak:  
> name:"{{ item }}"  
> state:present  
> method:user  
> with\_items:  
> -com.bluejeans.BlueJeans  
> -us.zoom.Zoom  
> -com.discordapp.Discord  
> -com.dropbox.Client  
> -com.microsoft.Teams  
> -org.signal.Signal  
> -ws.openarena.OpenArena  
> -net.openra.OpenRA  
> -org.fedoraproject.MediaWriter  
> -org.raspberrypi.rpi-imager  
> -io.neovim.nvim  
> -com.anydesk.Anydesk  
> -io.dbeaver.DBeaverCommunity  
> -com.github.alecaddd.sequeler  
> -com.notepadqq.Notepadqq  
> -org.qownnotes.QOwnNotes  
> -io.brackets.Brackets  
> -io.atom.Atom  
> -org.gnome.Boxes  
> -com.jetbrains.PyCharm-Community  
> -com.sublimetext.three  
> -com.visualstudio.code  
> \>
> 
> Kind of lost at where the issue is.

Indendation is wrong ... with\_items is a general task parameter and not a module parameter.

flatpak:  
&nbsp;&nbsp;name:"{{ item }}"  
&nbsp;&nbsp;state:present  
&nbsp;&nbsp;method:user  
with\_items:  
&nbsp;&nbsp;...

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke

---

<div class="post-metadata">

**Author:** ![Andrew\_Meyer1](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@Andrew\_Meyer1](https://forum.ansible.com/u/Andrew_Meyer1)\
**Post date:** [July 9, 2020, 11:23pm UTC](https://forum.ansible.com/t/installing-flatpaks/33364/3 "2020-07-09T23:23:05Z")

</div>

Thank You!
