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:
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.