How do I access that as a var? I am accessing each component as part of a
uri call in the include tasks statement.
On Thu, Jun 18, 2020, 6:22 AM Stefan Hornburg (Racke)
wrote:
> On 6/18/20 1:11 PM, Nicholas Britton wrote:
> > So with that option I would have two more include tasks pr
tasks, and includes another task to 'go down' one level
> so to speak.
>
>
>
> On Wed, 17 Jun 2020 at 22:15, Nicholas Britton
> wrote:
>
>> I have a senerio where i think a nested with_items would work , but i am
>> not seeing any examples where there are multiple k
I have a senerio where i think a nested with_items would work , but i am
not seeing any examples where there are multiple keys.
Today i have a with_items that looks like this:
- name: Include vmware workflow for Tag Setups
include_tasks: tasks/vmworkflow_assetgroup_create_tags_include.yml
a host level).
>
> Example:
> all:
> vars:
> ansible_connection: "local"
> children:
> dbservers:
> vars:
> foo: "bar"
> hosts:
> dbserver1:
> sys: "TEST"
>
> Hope that helps!
> - Dakota
>
> On Tuesday, June 16, 2020 at 2:23:35 AM UTC-4, Ni
I dont have much data at the moment since I am using a few test playbooks with
static set vars to see if nested include task statements would work. Which it
did. The part I am missing is after the nested includes that run in a loop, I
want to print a summary of specifc vars to the screen for
I am trying to see how I can setup an inventory file for an application that is
all managed by uri calls.
I have multiple end points that will end up with some different vars by host.
But I have the host as 127.0.0.1 since everything runs local I thought that
would be the way to do it.
I am
I am trying to find away that i can create an array that i can reference
later that would be built through a series of include_task plays. Through
the plays i will specific pieces of data that i care to keep for use later.
My layout is as:
main.yml
-- inlcude_tasks.yml with loop
--
n Saturday, December 14, 2019 at 11:48:54 AM UTC-6, Nicholas Britton wrote:
>
> Okay I can try that. Looks like you added a . In front of each line but
> the last one that needs to be a list? Did I see that correct?
>
> On Sat, Dec 14, 2019, 9:41 AM Vladimir Botka wrote:
>
>>
Okay I can try that. Looks like you added a . In front of each line but the
last one that needs to be a list? Did I see that correct?
On Sat, Dec 14, 2019, 9:41 AM Vladimir Botka wrote:
> Hi Nicholas,
>
> On Sat, 14 Dec 2019 05:34:22 -0800 (PST)
> Nicholas Britton wrote:
>
'ok' in result.stdout\"\n"
}
On Saturday, December 14, 2019 at 2:35:55 AM UTC-6, Stefan Hornburg (Racke)
wrote:
>
> On 12/14/19 12:46 AM, Nicholas Britton wrote:
> > The problem is I don't know how to make ansible send the right bracket.
> Testing from swagger I know what i
Is it the - in front of type that makes it a list over a dict?
On Sat, Dec 14, 2019, 2:35 AM Stefan Hornburg (Racke)
wrote:
> On 12/14/19 12:46 AM, Nicholas Britton wrote:
> > The problem is I don't know how to make ansible send the right bracket.
> Testing from swagger I know wha
_does_ work. So the solution
> is... send that?
>
> Or am I missing something
>
>
>
> On Fri, 13 Dec 2019 at 22:09, Nicholas Britton
> wrote:
>
>> I am working on some uri calls with netbackup and with swagger shows that
>> it only works with [] but the uri mo
I am working on some uri calls with netbackup and with swagger shows that
it only works with [] but the uri modual is using {}. Any thoughts or
tricks to get that to format correctly?
For example i am sending a body uri body of:
- name: Create MSDP Disk Pool
uri:
url:
Right now the user input will come when the user runs the main playbook.
The playbook is a series of include_tasks's.While the inventory file
contains vars but i would like the user input to help select what vars to
use through the plays.
Example of vars in inventory would be:
ams03:
Thank you! That helped me connect the dots. I found the extra space
and its working like a champ. Thank you again!
On Thursday, August 29, 2019 at 9:23:50 AM UTC-5, Kai Stian Olstad wrote:
>
> On 29.08.2019 15:48, Nicholas Britton wrote:
> > Thank you. I see wha
", "") }}"
The offending line appears to be:
debug:
msg: "{{hostgrpnum_s | replace(" ", "") }}"
^ here
On Thursday, August 29, 2019 at 6:46:15 AM UTC-5, Kai Stian Olstad wrote:
>
> O
I tried to play with that some yesterday but did not have much luck. What
can I provide you to help you help me?
On Wed, Aug 28, 2019, 2:20 AM Kai Stian Olstad <
ansible-project+l...@olstad.com> wrote:
> On 27.08.2019 23:46, Nicholas Britton wrote:
> > That provides me this:
>
"
}
how do i clean that up to only get the value 10 out of it?
The end result i am expecting is for the list to look like:
'10','11','15'
On Tuesday, August 27, 2019 at 3:51:35 PM UTC-5, Kai Stian Olstad wrote:
>
> On 27.08.2019 22:32, Nicholas Britton wrote:
> > And this
I am building a list with output stored from a uri call:
- name: Get hostgroup info
uri:
url:
"{{baseurl}}views/host-groups?$query=hostGroup.storageDeviceId%20eq%20'{{ui}}'%20and%20hostGroup.hostGroupName%20in%20[{{vmc02}}]"
method: get
validate_certs: no
headers:
I am working on a set of playbooks for a hitachi storage automation.
They utilize a cmrest server, that manages the connection to each storage
array. So all of the tasks are ran on the localhost to the same url base,
but there is a var in the path that indicates what storage array to run
I got this figured out. I needed to add a step before, to create a list
with all the values , then find the max of it.
On Monday, August 26, 2019 at 12:42:47 PM UTC-5, Nicholas Britton wrote:
>
> Thank you, that has helped alot.
>
> I was looking at the max option:
>
> -
***
ok: [127.0.0.1] => {
"msg": "am1vmhost12,CL8-B,15,83,SFTP,6"
}
On Friday, August 23, 2019 at 3:22:58 PM UTC-5, Nicholas Britton wrote:
>
> I am trying to loop through a json object that is returned and list out
> key pieces of information,
at will use the item. as
inputs to the body of the uri call. I have not had much luck locating
what i think would do that, if someone has an example that would be great.
On Friday, August 23, 2019 at 3:22:58 PM UTC-5, Nicholas Britton wrote:
>
> I am trying to loop through a json object tha
It's going to be used as input for a uri request. I will want to loop
through each hostgroup and repeat until done with the list.
I have not looked yet but I will also want to filter the list by the name.
--
You received this message because you are subscribed to the Google Groups
"Ansible
I have been looking for a module for something similar to the du command. I
would like to have a play that looks at the log directory to detect if it's a
certian size or larger and if so find the sub folders with gbs of data and
remove or tar that data up.
So far I am not finding that and
I have been trying to work with the filter for json responces but i am not
having much luck. I can print out a line of intrest, but i am not able to
iteriate over the other objects in the response when i try to loop through
it.
Here is the response i get from the uri call :
TASK [debug
Is that pause option available within a role? Do you have some examples
of that you would be willing to share?
On Thursday, May 9, 2019 at 2:42:15 PM UTC-5, Brian Coca wrote:
>
> vars_prompt is only available at play, you can however use `pause` and
> register user input.
>
>
> --
>
I am working on a project that will be mostly api based running locally and
attaching to different environments via the api (uri module)
My plan was to create a role for each type of call that will be made, that
way playbooks can be created to use any series of roles. The problem i am
> - us-west-2
> name: regions
> id: someid
> type: plugininstance
>
> On Wed, May 8, 2019 at 4:50 PM Nicholas Britton <
> britton.nicho...@gmail.com> wrote:
>
>> I am looking to use the uri module and have been s
I am looking to use the uri module and have been sucessfull with simpler
calls, but i am unsure how to get something like the following to work
correctly.I have been provided what the json should look like but i am
unsure how to build that out via the uri module in the body syntax.
I have
I am trying to print the free space for a mount that an application needs
to have x free on. Once i can do that i would look at adding actions
based on that, but i would also like to the user running the play to know
if there is an issue or not.
Here is what i have so far, and i cant see
31 matches
Mail list logo