Trying to pass a list of packages to be installed, and the output must
return the packages will get installed before continuing with the install.
Example output I get using jq (which is what I'm after):
"dpkg-dev [1.17.5ubuntu5.5] (1.17.5ubuntu5.6 Ubuntu:14.04/trusty-updates
[all]) []"
"libdpkg
Hi,
It is possible to select all the elements instead of specify one element?
Working:
debug: msg="{{packages.results[0].stdout_lines}}"
I've tried:
debug: msg="{{packages.results[].stdout_lines}}" - It returns 'list object
has no element ()'
--
You received this message because you are subs
Thanks, working now
On Friday, 6 May 2016 11:18:08 UTC+2, Johannes Kastl wrote:
>
> On 06.05.16 11:13 deo...@miranetworks.net wrote:
> > Tried that and does not work.
> >
> > Apt sees it as "apt-get install [foo,bar]" instead of "apt-get install
> foo
> > bar"
>
> Damn, I get the list thing
Tried that and does not work.
Apt sees it as "apt-get install [foo,bar]" instead of "apt-get install foo
bar"
On Friday, 6 May 2016 10:58:42 UTC+2, Johannes Kastl wrote:
>
> On 06.05.16 10:56 deo...@miranetworks.net wrote:
> > Hi,
> >
> > Is it possible to pass list of packages with --extra-
Hi,
Is it possible to pass list of packages with --extra-vars that needs to be
installed with apt? I don't want to update the playbook everytime with list
of package. Currently I can pass one package and it installed fine.
Regards
--
You received this message because you are subscribed to the
Hi,
In my playbook I copy the ssh public key to my local ansible master.
- name: fetch pub key from server
fetch: src=/home/user/.ssh/id_rsa.pub dest=/tmp/keys/{{
inventory_hostname_short }}_id_rsa.pub flat=yes
Next I use authorized_key module to place it in authorized keys of another
user o