Re: [ansible-project] installing flatpaks

2020-07-09 Thread Andrew Meyer
Thank You!

On Thursday, July 9, 2020 at 4:20:10 PM UTC-5, Stefan Hornburg (Racke) 
wrote:
>
> On 7/9/20 11:14 PM, Andrew Meyer wrote: 
> > 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: 
>   name:"{{ item }}" 
>   state:present 
>   method:user 
> with_items: 
>   ... 
>
> Regards 
>Racke 
>
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "Ansible Project" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to 
> > ansible...@googlegroups.com   ansible-project+unsubscr...@googlegroups.com >. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/ansible-project/e3a6cbd5-3f45-46c8-ada4-cfcc20dd65c7o%40googlegroups.com
>  
> > <
> https://groups.google.com/d/msgid/ansible-project/e3a6cbd5-3f45-46c8-ada4-cfcc20dd65c7o%40googlegroups.com?utm_medium=email_source=footer>.
>  
>
>
>
> -- 
> Ecommerce and Linux consulting + Perl and web application programming. 
> Debian and Sympa administration. Provisioning with Ansible. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7e866979-c271-4512-8f0c-7bb712aa8b21o%40googlegroups.com.


Re: [ansible-project] installing flatpaks

2020-07-09 Thread Stefan Hornburg (Racke)
On 7/9/20 11:14 PM, Andrew Meyer wrote:
> 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:
  name:"{{ item }}"
  state:present
  method:user
with_items:
  ...

Regards
   Racke

> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to
> ansible-project+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/e3a6cbd5-3f45-46c8-ada4-cfcc20dd65c7o%40googlegroups.com
> .


-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/20cf4230-8909-77e6-d291-9f0bfade640b%40linuxia.de.


signature.asc
Description: OpenPGP digital signature