Re: [ansible-project] Casting a variable as an integer

2018-12-11 Thread Kai Stian Olstad

On 10.12.2018 23:26, Stuart Longland wrote:
encrypted: "{{hostvars[item].get('encrypted','false') == 
'true'}}"

volume_size: "{{hostvars[item].get('volume_size',100) | int}}"
volume_type: "{{hostvars[item].get('volume_type','gp2')}}"


I got the same error.

I suspect that the integer is then getting cast *back* to a string
before being passed onto `boto3`, which is then barfing on it.


You could try to do it the Ansible way and not the Python way to see if 
that works.


  volume_size: "{{hostvars[item].volume_size | default(100) | int}}"

--
Kai Stian Olstad

--
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e9e8a0bec9f24844e3138d8bb6f6259e%40olstad.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible client host in windows 2016 server

2018-12-11 Thread Tharindu Weerakoon
Dears,

Anyone has recommended document of link for configure ansible in win 2016 
with selfsign cert.
 Tharindu

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ca02120d-b7f1-4621-a683-8b5db6a5c7eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: AWX Tower callback - No matching host could be found but tower console is working

2018-12-11 Thread cava cavamagie
same problem

Op donderdag 30 augustus 2018 20:46:53 UTC+2 schreef devula...@gmail.com:
>
>
> I have setup inventory and job template and  the call back is returning  
> "No matching host could be found"  but actually the tower console I could 
> see host listed in the inventory and even attempted synch and even I could 
> able to run the job template successfully
>
> could someone please help me why callback is not working but tower console 
> is working fine.
>
> Thank you!
>

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f472c2c1-e648-4a93-b698-75be543261f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible client host in windows 2016 server

2018-12-11 Thread Dick Visser
On Tue, 11 Dec 2018 at 11:05, Tharindu Weerakoon  wrote:
>
> Dears,
>
> Anyone has recommended document of link for configure ansible in win 2016 
> with selfsign cert.

I'm not sure what you mean by "client host" in the subject of the message.
If you mean you want to use Windows as the control machine, then it's
easy, that is not supported:
https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#control-machine-requirements

If you plan to manage Windows systems, then this is possible:
https://docs.ansible.com/ansible/latest/user_guide/windows.html

Dick

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwPYZkK7FLsdBt5GfotN%2BNngVU3FUyfburtuWr1NsFN5Kg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Re: AWX Tower callback - No matching host could be found but tower console is working

2018-12-11 Thread Jonathan Lozada De La Matta
are you using tower or AWX?

On Tue, Dec 11, 2018 at 6:36 AM cava cavamagie  wrote:

> same problem
>
> Op donderdag 30 augustus 2018 20:46:53 UTC+2 schreef devula...@gmail.com:
>>
>>
>> I have setup inventory and job template and  the call back is returning
>> "No matching host could be found"  but actually the tower console I could
>> see host listed in the inventory and even attempted synch and even I could
>> able to run the job template successfully
>>
>> could someone please help me why callback is not working but tower
>> console is working fine.
>>
>> Thank you!
>>
> --
> 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 post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/f472c2c1-e648-4a93-b698-75be543261f1%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 

Jonathan lozada de la matta

AUTOMATION PRACTICE

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFYJA%2BJEctDKU1wrHf4d0R2DQFh-9aZ%3DUuurO0HvaA5hHYpyHw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible client host in windows 2016 server

2018-12-11 Thread Tharindu Weerakoon
Hi Dick,

really i need to config windows 2016 machine as ansible client. i want to
config my ansible installed cent os machine to communicate win 2016 server.
i have seen there are have several ways to config. Im prefer to do it via
credssp. Do you have any documentation guide.

Tharindu

On Tue, Dec 11, 2018 at 6:02 PM Dick Visser  wrote:

> On Tue, 11 Dec 2018 at 11:05, Tharindu Weerakoon 
> wrote:
> >
> > Dears,
> >
> > Anyone has recommended document of link for configure ansible in win
> 2016 with selfsign cert.
>
> I'm not sure what you mean by "client host" in the subject of the message.
> If you mean you want to use Windows as the control machine, then it's
> easy, that is not supported:
>
> https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#control-machine-requirements
>
> If you plan to manage Windows systems, then this is possible:
> https://docs.ansible.com/ansible/latest/user_guide/windows.html
>
> Dick
>
> --
> 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 post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAL8fbwPYZkK7FLsdBt5GfotN%2BNngVU3FUyfburtuWr1NsFN5Kg%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAHLD%3Dgecq%2BkexnU4LRtTxWkEPtN4E6M7xPLV%2BsXS6qSPpBfFkA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible client host in windows 2016 server

2018-12-11 Thread Dick Visser
On Tue, 11 Dec 2018 at 13:39, Tharindu Weerakoon  wrote:
>
> Hi Dick,
>
> really i need to config windows 2016 machine as ansible client. i want to 
> config my ansible installed cent os machine to communicate win 2016 server. i 
> have seen there are have several ways to config. Im prefer to do it via 
> credssp. Do you have any documentation guide.

As I said there is no such thing as an "ansible client", this is
called the "control machine".
But, from the parts that I do understand of your message, you want to
manage Windows systems - in which case the same links are still valid.

Dick

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwMOjymkRZynxK%2BuMwnWqe4QXD-Sj%3DnG45EWFVqw%2BDRo5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Re: AWX Tower callback - No matching host could be found but tower console is working

2018-12-11 Thread cavamagie
awx over openshift

2018-12-11 12:31:56,350 DEBUGawx.main.models.inventory Going to
update inventory computed fields
2018-12-11 12:31:56,372 DEBUGawx.main.models.inventory Finished
updating inventory computed fields
2018-12-11 12:31:56,446 DEBUGawx.main.dispatch publish
awx.main.scheduler.tasks.run_task_manager(68c377b9-f391-4e3e-b66e-aa3f5256a75f,
queue=awx_private_queue)
RESULT 2
OKREADY
No previous hash found192.168.13.1 - - [11/Dec/2018:12:32:13 +]
"POST /api/v2/job_templates/21/callback/ HTTP/1.1" 400 42 "-"
"curl/7.52.1" "192.168.10.25"
2018-12-11 12:32:13,626 WARNING  awx.api.generics status 400 received
by user AnonymousUser attempting to access
/api/v2/job_templates/21/callback/ from 192.168.13.1
Il giorno mar 11 dic 2018 alle ore 13:32 Jonathan Lozada De La Matta
 ha scritto:
>
> are you using tower or AWX?
>
> On Tue, Dec 11, 2018 at 6:36 AM cava cavamagie  wrote:
>>
>> same problem
>>
>> Op donderdag 30 augustus 2018 20:46:53 UTC+2 schreef devula...@gmail.com:
>>>
>>>
>>> I have setup inventory and job template and  the call back is returning  
>>> "No matching host could be found"  but actually the tower console I could 
>>> see host listed in the inventory and even attempted synch and even I could 
>>> able to run the job template successfully
>>>
>>> could someone please help me why callback is not working but tower console 
>>> is working fine.
>>>
>>> Thank you!
>>
>> --
>> 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 post to this group, send email to ansible-project@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/f472c2c1-e648-4a93-b698-75be543261f1%40googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
>
> Jonathan lozada de la matta
>
> AUTOMATION PRACTICE
>
>
>
>
>
> --
> 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 post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/CAFYJA%2BJEctDKU1wrHf4d0R2DQFh-9aZ%3DUuurO0HvaA5hHYpyHw%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJ%3DxKPYuoTwwLHrAzgvo47CYsPcR%3DNSE5iO-RJZqCVf1dqYmTQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible client host in windows 2016 server

2018-12-11 Thread Tharindu Weerakoon
Hi Dick,

Yes you correct. But i failed to config winrm configuration windows 2016
server. Given links are little bit confusing me. Do you can provide step by
step document if you have

Tharindu

On Tue, Dec 11, 2018 at 6:46 PM Dick Visser  wrote:

> On Tue, 11 Dec 2018 at 13:39, Tharindu Weerakoon 
> wrote:
> >
> > Hi Dick,
> >
> > really i need to config windows 2016 machine as ansible client. i want
> to config my ansible installed cent os machine to communicate win 2016
> server. i have seen there are have several ways to config. Im prefer to do
> it via credssp. Do you have any documentation guide.
>
> As I said there is no such thing as an "ansible client", this is
> called the "control machine".
> But, from the parts that I do understand of your message, you want to
> manage Windows systems - in which case the same links are still valid.
>
> Dick
>
> --
> 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 post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAL8fbwMOjymkRZynxK%2BuMwnWqe4QXD-Sj%3DnG45EWFVqw%2BDRo5w%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAHLD%3DgdCVF9T_hs51uBF14do868dZefnnvXyzXOfjCv648KCXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible client host in windows 2016 server

2018-12-11 Thread Michael Cruz
I Just finished going through this and the documentation is pretty good. 
Definitely read through the links Dick sent.
https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html

I recommend reading the script it's from the Ansible site. This will get 
you a base set up for a lab to get you started. Long Term you will need to 
do a little more. One thing about CREDSSP is that if you are using it. Even 
with a certificate only the traffic is covered by the ssl the UserName and 
Password are sent as clear text. In the Security event log of your Windows 
Client you will see event ID 4624 with LogonTypeName set to 8 - 
NetworkClearText.

$url = 
"https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1";
$file = "$env:temp\ConfigureRemotingForAnsible.ps1"

(New-Object -TypeName System.Net.WebClient).DownloadFile($url, $file)

Unblock-File $env:Temp\ConfigureRemotingForAnsible.ps1
cd $env:temp
.\ConfigureRemotingForAnsible.ps1 -Verbose -EnableCredSSP -DisableBasicAuth 
-SubjectName "ansible" -CertValidityDays $(365 *2) | out-null

Mike

On Tuesday, December 11, 2018 at 6:38:28 AM UTC-6, Tharindu Weerakoon wrote:
>
> Hi Dick,
>
> really i need to config windows 2016 machine as ansible client. i want to 
> config my ansible installed cent os machine to communicate win 2016 server. 
> i have seen there are have several ways to config. Im prefer to do it via 
> credssp. Do you have any documentation guide.
>
> Tharindu
>
> On Tue, Dec 11, 2018 at 6:02 PM Dick Visser  > wrote:
>
>> On Tue, 11 Dec 2018 at 11:05, Tharindu Weerakoon > > wrote:
>> >
>> > Dears,
>> >
>> > Anyone has recommended document of link for configure ansible in win 
>> 2016 with selfsign cert.
>>
>> I'm not sure what you mean by "client host" in the subject of the message.
>> If you mean you want to use Windows as the control machine, then it's
>> easy, that is not supported:
>>
>> https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#control-machine-requirements
>>
>> If you plan to manage Windows systems, then this is possible:
>> https://docs.ansible.com/ansible/latest/user_guide/windows.html
>>
>> Dick
>>
>> -- 
>> 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-proje...@googlegroups.com .
>> To post to this group, send email to ansible...@googlegroups.com 
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/CAL8fbwPYZkK7FLsdBt5GfotN%2BNngVU3FUyfburtuWr1NsFN5Kg%40mail.gmail.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ad2d7caf-3597-4eec-b8c6-ea5bacc42323%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Display high-level summary of --diff output

2018-12-11 Thread N. Bailey
Hi Ansible list,

A quick question about using Ansible effectively in a CI/CD context: I'm 
wondering about the best way to set up jobs that runs a playbook with 
`--check --diff` flags, and gives a concise report of what would be 
affected by applying changes.

The use case I want to do now is that I'm writing a job to deploy 
monitoring configuration change, and I'd like to provide an at-a-glance 
view that says "this job will add this 6 lines of JSON to that config 
file". Tha'd be useful for checking there aren't any other stray changes 
merged into version control but not deployed yet, as a final 
typo-proofreading opportunity for the person pushing the update, and as an 
audit log in retrospect.

This seems like other folks might have tried, but I can't find anything 
relevant-looking with a google around, so I wanted to check in with this 
group.

All the building blocks are there:

Running `template` in diff mode gives this kind of info in task output:

TASK [datadog_agent : Create a configuration file for each Datadog check] 
*
ok: [use1-tst-datadog01.oad-aws.illumina.com] => (item=process)
--- before: /etc/datadog-agent/conf.d/custom_mysql_metrics.d/conf.yaml
+++ after: 
/Users/nbailey/.ansible/tmp/ansible-local-83201emVWXJ/tmpOvX8S_/checks.yaml.j2
@@ -25,4 +25,5 @@
 - test:original
+- test:test-diff

changed: [use1-tst-datadog01.oad-aws.illumina.com] => 
(item=custom_mysql_metrics)
ok: [use1-tst-datadog01.oad-aws.illumina.com] => (item=mysql)


And that comes from this return JSON from the task output: 

ok: [use1-tst-datadog01.oad-aws.illumina.com] => {
"changed": false,
"diff": {
"after": {
"path": "/etc/datadog-agent/trace-agent.conf"
},
"before": {
"path": "/etc/datadog-agent/trace-agent.conf"
}
},

I could definitely register each task output and construct a big JSON or 
YAML block to show all changes across all diffs in a role, but that seems 
like it'd be very clunky:

- name: Create a configuration file for each Datadog check
  become: True
  template:
src: checks.yaml.j2
dest: "/etc/datadog-agent/conf.d/{{ item }}.d/conf.yaml"
owner: "{{ datadog_agent.user | default('dd-agent') }}"
group: "{{ datadog_agent.group | default('dd-agent') }}"
  with_items: "{{ datadog_agent.checks|list }}"
  notify: restart datadog-agent
  when: datadog_agent is defined
  register: datadog_config_output

- name: If there were changes, save them for later reporting.
  set_fact: {{ false if datadog_config_output.changed == false else do some 
gnarly logic that involves parsing results for each item }}


But this seems really labour intensive.

Is this a job for a callback plugin? The 'log_plays' sounds like it's doing 
something fundamentally very similar, but the docs are pretty sparse 
(https://docs.ansible.com/ansible/2.6/plugins/callback/log_plays.html).


Have other Ansible users tried something like this, and if so, what did you 
go with?

Thanks for any pointers!
Nikki

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6f0a3cf2-ec8a-4d88-b73b-ce3c23fdae0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Apache config test and send signal to restart apache if syntax check is passed

2018-12-11 Thread Himanshu Maity
Hi,

I'm trying to run two commands in a single line, which will validate the 
syntax of apache configuration copied from template file and send a signal 
to reload the apache if it's passed.

Right now, my configuration looks like as below where I only sending the 
signal to apache to reload after coping the config from template file and 
it's working fine.

*command: '-consul={{ ansible_host }}:2250 
-template="vhosts.ctmpl:vhosts.conf:/bin/docker/docker kill -s USR1 
apache"'*

But I'm trying to add configtest with this command like,

command: '-consul={{ ansible_host }}:2250 
-template="vhosts.ctmpl:vhosts.conf:/bin/docker/docker exec apache 
/usr/local/apache2/bin/apachectl configtest && */bin/docker/docker kill -s 
USR1 apache*"'


But, the last reload of the apache command is failing as I can't send the 
signal to reload own process(apache) inside of staying in the container.


Can anyone please guide, you help is truly appreciated. Thanks in advance.


Best Regards

Himanshu Maity

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7865c8c1-dd07-4341-860e-9a215257300e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Re: having issues with finding AMI

2018-12-11 Thread Frank Dias
ami-0307f7ccf6ea35750

refer to this link for the latest  
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI_launch_latest.html

On Saturday, December 8, 2018 at 3:54:01 AM UTC-6, Karl Auer wrote:
>
> Hullo Frank.
>
> What specific AMI did you expect your code to find?
>
> Did you manually locate that AMI in the available AMIs for that region?
>
> I.e., do you know for a fact that the AMI you seek does exist and does 
> match that search string? Please tell us the specific AMI ID that you think 
> matches your search string.
>
> Also, you have provided two different search strings - which one is being 
> used by your code?
>
> Regards, K.
>
>
> On Fri, Dec 7, 2018 at 11:37 AM Frank Dias  > wrote:
>
>> here are the extra vars being set;
>> account: prod
>> ami_search_string: amzn-ami-2018.03.i-amazon-ecs-optimized
>> asg_name: MiscServices
>> cluster_name: MiscServices
>> instance_type: m5.2xlarge
>> lc_name: MiscServices
>> region: us-west-2
>>
>>
>> On Thursday, December 6, 2018 at 2:45:21 PM UTC-6, Frank Dias wrote:
>>>
>>> ami_search_string: "amzn*amazon-ecs-optimized*"
>>>
>>>
>>>   ec2_ami_find:
>>> name: "{{ ami_search_string }}"
>>> region: "{{ region }}"
>>> virtualization_type: hvm
>>> owner: aws-marketplace
>>> sort: creationDate
>>> sort_order: descending
>>> sort_end: 1
>>>   register: os_image
>>>   when:
>>> - lc_ami is not defined
>>>
>>> failing to discover the ami from the following;
>>>
>>>
>>> https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html
>>>
>>> launch configuration fails on ami.
>>>
>>>
>>> -- 
>> 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-proje...@googlegroups.com .
>> To post to this group, send email to ansible...@googlegroups.com 
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/01d5bed1-eb12-4016-b8e1-db064e2f3b38%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> Karl Auer
>
> Email  : ka...@2pisoftware.com 
> Website: http://2pisoftware.com
>
> GPG/PGP : 958A 2647 6C44 D376 3D63 86A5 FFB2 20BC 0257 5816
> Previous: F0AB 6C70 A49D 1927 6E05 81E7 AD95 268F 2AB6 40EA
>

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/de790081-8dc0-48a4-b764-ebb17e550c02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Apache config test and send signal to restart apache if syntax check is passed

2018-12-11 Thread Brian Coca
First i would make this a script and use the 'script' module, but the
issue you are probably hitting is that 'command' does not support
'shellisms' like &&, so you need to use the shell module




-- 
--
Brian Coca

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7ektvpjxXK87i5oi6qJfh4osUKQqxphmbGUfNAQtG2MLA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Inventory folder structure verification

2018-12-11 Thread Brian Coca
Im unsure of what the problem is since you seem to have contradictory
expectations,  you state info should be picked from
`"production/host_vars/hostname-stage.fqdn.yml` but that file is not
under production, but under staging.

In any case you can use `ansible-inventory` to see what ansible
actually composes from the given inventory.



-- 
--
Brian Coca

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7d88Tqc5-H6iext5vn5FL1xeB3m4W4sfJ7sVTfOWZQZHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Apache config test and send signal to restart apache if syntax check is passed

2018-12-11 Thread Himanshu Maity
Thanks for your response Brian.

I think I'm using docker exec which support &&, please find the screenshot 
attached. 

[image: Screen Shot 2018-12-11 at 12.37.23 PM.png] 

Like, if I run this command  -   docker exec -it apache bash -c 
"/usr/local/apache2/bin/httpd -t && echo a" ,then it execute properly. 

But, once I'm trying to run this - docker exec -it apache bash -c 
"/usr/local/apache2/bin/httpd -t && /bin/kill -s USR1 apache" ,then 1st 
command is getting executed but 2nd command is giving error as I used 
'docker exec' to get into the container and it can't reload the apache 
staying inside of container. 

*Output:*

[root@### ~]$ docker exec -it apache bash -c "/usr/local/apache2/bin/httpd 
-t && /bin/kill -s USR1 apache"

Syntax OK

kill: failed to parse argument: 'apache'

FYIP, apache is a container running on the host.

On Tuesday, December 11, 2018 at 12:31:56 PM UTC-6, Brian Coca wrote:
>
> First i would make this a script and use the 'script' module, but the 
> issue you are probably hitting is that 'command' does not support 
> 'shellisms' like &&, so you need to use the shell module 
>
>
>
>
> -- 
> -- 
> Brian Coca 
>

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4b6ff12e-02ba-423d-9cc2-21de38e5033a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Apache config test and send signal to restart apache if syntax check is passed

2018-12-11 Thread Brian Coca
On Tue, Dec 11, 2018 at 1:45 PM Himanshu Maity 
wrote:

> Thanks for your response Brian.
>
> I think I'm using docker exec which support &&, please find the screenshot
> attached.
>
> --
For that you need to go to a docker mailing list/support forum.

I only responded to the first post as it seemed to show an incorrect usage
of the Ansible comand module.

--
Brian Coca

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7cubmBSRQeRXK%3DPin1Hd%3Dji%2BGCC-K%2BHxcaBSUp6oxAUXA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] please help: how does the lxc connection plugin work?

2018-12-11 Thread Brian Coca
ansible_host should be the container, but lxc is designed to execute
on the lxc host server, so you need to install ansible on that and use
it as controller.


-- 
--
Brian Coca

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7cQE-hpow8f0ZttSd%3D%2BdKDcp%3Dra-1HnfeGD8PwifpeaBg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: Ansible log verbosity in ansible.cfg

2018-12-11 Thread tkuratom
I'm looking into this for 2.9 (with some initial work targetted for 2.8 but 
that won't be the config portion).

https://github.com/ansible/ansible/issues/49657

-Toshio

On Thursday, November 29, 2018 at 4:39:00 AM UTC-8, Jad Baz wrote:
>
> We can specify a log_path in ansible.cfg 
>  which 
> instructs Ansible to log to a certain file.
> Is there a way to specify the verbosity of that logging as well? (The 
> default is not verbose).
> Logging verbosity is not affected by the verbosity from the command line 
> either.
>
> If this does not exist, I think it should be a feature request.
> It could be quite useful to get more verbose output in the log file.
>
> This would be especially useful in the following scenario:
> You run a play with no/little verbosity and something goes wrong. You run 
> it again with more verbosity but it doesn't produce the same error. For 
> some reason it only happens once or now you're getting a different error. 
> Maybe you made a permanent change in the environment that means you can't 
> reproduce the same error. If this happens, you're hopeless.
> If by default you've configured your log to be verbose, you can not worry 
> about what you're logging to the command line, get a pretty and uncluttered 
> output but still have verbose logs for when something goes wrong.
>
> Thank you
>

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/55848d3a-056b-49ad-95a0-591aef18fa1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Simple Ad Hoc commands results in many UNREACHABLE hosts

2018-12-11 Thread Sloan Miller
I have about 200 servers in my hosts file.  I can ssh to those servers 
without entering a password.  ssh and no errors or trouble.  When i attempt 
to run a simple Ad Hoc uptime command more that  50% of the servers show up 
as UNREACHABLE.Are there any setting I can use to improve this?  Salt 
uses --async to improve response rates.  Does ansible have any command line 
flags that are similar?

[privilege_escalation]
become=True
become_method=sudo
become_user=root
gathering = explicit
[inventory]

[ssh_connection]
pipelining = True 

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4521090b-30e1-4c3d-9e12-8343d3c3dd47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] with_first_found documentation

2018-12-11 Thread Baraka Baraka
Hi!

I am looking for a description what "with_first_found" does how it works. I 
googled and searched the ansible documentation and I can figure it out but 
guessing is not good way I think. So where can I find a detailed 
description of it?

Thank you very much!

Baraka

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d74f4022-8c4c-4d8c-bbb1-d366f0a94c90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] with_first_found documentation

2018-12-11 Thread Kai Stian Olstad
On Tuesday, 11 December 2018 22:36:55 CET Baraka Baraka wrote:
> Hi!
> 
> I am looking for a description what "with_first_found" does how it works. I 
> googled and searched the ansible documentation and I can figure it out but 
> guessing is not good way I think. So where can I find a detailed 
> description of it?

https://docs.ansible.com/ansible/2.4/playbooks_loops.html#finding-first-matched-files


-- 
Kai Stian Olstad


-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3412422.xYgICagPcH%40x1.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible client host in windows 2016 server

2018-12-11 Thread Jordan Borean

>
> Even with a certificate only the traffic is covered by the ssl the 
> UserName and Password are sent as clear text


Just thought I should clarify this a bit more, what "clear text" means in 
this scenario is that the username and password are sent as they are and 
not as a hash you typically see with NTLM or Kerberos authentication. The 
actual data is doubly encrypted/wrapped during the authentication process 
with

* The wrap method of the underlying auth used, either NTLM (RC4) or 
Kerberos (AES256), then
* TLS encrypted based on the session setup in CredSSP auth

So yes it is inherently more insecure compared to Kerberos, and to an 
extent NTLM, as the credentials are sent as is but the value is still 
protected through 2 layers of encryption meaning someone sniffing the 
network packets won't be able to see it.

Thanks

Jordan

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/bd7c91e2-85e9-4ce5-8b30-69326f4840b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Casting a variable as an integer

2018-12-11 Thread Stuart Longland
On 11/12/18 6:07 pm, Kai Stian Olstad wrote:
> On 10.12.2018 23:26, Stuart Longland wrote:
>>>     encrypted: "{{hostvars[item].get('encrypted','false') ==
>>> 'true'}}"
>>>     volume_size: "{{hostvars[item].get('volume_size',100) | int}}"
>>>     volume_type: "{{hostvars[item].get('volume_type','gp2')}}"
>>
>> I got the same error.
>>
>> I suspect that the integer is then getting cast *back* to a string
>> before being passed onto `boto3`, which is then barfing on it.
> 
> You could try to do it the Ansible way and not the Python way to see if
> that works.
> 
>   volume_size: "{{hostvars[item].volume_size | default(100) | int}}"
> 

I understood Ansible basically used the Python language within Jinja2.
What's the difference between these two lines?

{{hostvars[item].volume_size | default(100) | int}}
{{hostvars[item].get('volume_size',100) | int}}

I'd try it out, but I've now hit a second issue with `ec2_instance`, and
that is it keeps insisting on modifying the *existing* instance I
created for a customer instead of creating a *new* instance like I
intended.  (This is in spite of the customer instance being a
"t3.xlarge", and my new instance having a type of "t3.nano".)

How does one tell `ec2_instance` to "leave the existing instance(s)
alone and create a new one"?
-- 
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
  ...it's backed up on a tape somewhere.

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c88df668-4f3d-70f5-7bed-9c83831a6db3%40longlandclan.id.au.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] with_first_found documentation

2018-12-11 Thread Brian Coca
All the with_ loops are actually with_  constructs, you can
find the lookup specific docs here
https://docs.ansible.com/ansible/latest/plugins/lookup.html.
Specific docs for the first_found lookup:
https://docs.ansible.com/ansible/latest/plugins/lookup/first_found.html


-- 
--
Brian Coca

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7eBjAgNnZ2HUSUZ2cLqQe6i0eZbjo3a1sWw4e7WYqFXHg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Display high-level summary of --diff output

2018-12-11 Thread Brian Coca
A better way to construct the output you want is using a custom
callback, see the json/junit ones as starting points.
-- 
--
Brian Coca

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7fnTq2LdxmOa_fbYUPwMRQ_zoFgV6tef1EbhLohy8MBxA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] how can pass nohup log print to target server for jar/java process using playbook?

2018-12-11 Thread 4Register Tony
when i was trying to pass nohup command via playbook, the target servers 
would not print nohup log. is here any tips to solve it? thanks in advance.

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/bfce13c9-6f64-4454-bc13-e980497f5c57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Casting a variable as an integer

2018-12-11 Thread Kai Stian Olstad
On Wednesday, 12 December 2018 00:21:55 CET Stuart Longland wrote:
> I understood Ansible basically used the Python language within Jinja2.
> What's the difference between these two lines?
> 
>   {{hostvars[item].volume_size | default(100) | int}}
>   {{hostvars[item].get('volume_size',100) | int}}

All software have bugs and the Ansible way is probably used by most and have 
therefore been thoroughly tested.
So the easiest way to check that out is to test it.


-- 
Kai Stian Olstad


-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8938591.v879NTsZqe%40x1.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Casting a variable as an integer

2018-12-11 Thread Stuart Longland
On 12/12/18 4:26 pm, Kai Stian Olstad wrote:
>> I understood Ansible basically used the Python language within Jinja2.
>> What's the difference between these two lines?
>>
>>  {{hostvars[item].volume_size | default(100) | int}}
>>  {{hostvars[item].get('volume_size',100) | int}}
> All software have bugs and the Ansible way is probably used by most and have 
> therefore been thoroughly tested.
> So the easiest way to check that out is to test it.

As explained, I'm unable to test because `ec2_instance` tries to clobber
an existing instance instead of creating a new one.

I also see that both call the `| int` filter in `jinja2`.  So assuming
`jinja2` is doing its job, the return value in *both* cases should be an
`int`.  `boto3` thinks though it is getting a `str`, which leads me to
believe something in between `jinja2` and `boto3` is casting it *back*
to a `str`.

>From `jinja2`'s perspective, there's no such thing as the "Ansible way",
it's *all* Python.  I therefore have trouble understanding what's
happening behind the scenes.
-- 
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
  ...it's backed up on a tape somewhere.

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b64172f1-3ab5-82f1-f51f-d59bc339e248%40longlandclan.id.au.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] High memory usage when running multiple ansible playbooks on localhost

2018-12-11 Thread pradeep.hk
I have a requirement to run lots of playbooks parallely on localhost. 
When I run 100 playbooks parallely (a simple one that executes the a shell 
command - date) , I see that
it consumes lot of resources (memory ~ 7GiB and CPU ~ 200%)
Is this on expected lines ?

here is what I am trying to run
main.yml-

- hosts: 127.0.0.1

  connection: local

  gather_facts: no

  

  tasks:

- name: Get date 

  shell: date

  register: result

  

- debug:

var: result.stdout
-

I execute multiple of them with the following script

-
#!/bin/bash
COUNT=1

if [ $# -ne 0 ]
then
   COUNT=$1
fi

for ((i=1;i<=$COUNT;i++)); 
do 
   ansible-playbook main.yml &
done
-


-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/fb716bff-d851-4f21-8542-71241b925940%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] High memory usage when running multiple ansible playbooks on localhost

2018-12-11 Thread Karl Auer
what happens if you leave Ansible out and just fire off 100 copies of date?

On Wed, Dec 12, 2018 at 5:54 PM pradeep.hk  wrote:

> I have a requirement to run lots of playbooks parallely on localhost.
> When I run 100 playbooks parallely (a simple one that executes the a shell
> command - date) , I see that
> it consumes lot of resources (memory ~ 7GiB and CPU ~ 200%)
> Is this on expected lines ?
>
> here is what I am trying to run
> main.yml-
>
> - hosts: 127.0.0.1
>
>   connection: local
>
>   gather_facts: no
>
>
>
>   tasks:
>
> - name: Get date
>
>   shell: date
>
>   register: result
>
>
>
> - debug:
>
> var: result.stdout
> -
>
> I execute multiple of them with the following script
>
> -
> #!/bin/bash
> COUNT=1
>
> if [ $# -ne 0 ]
> then
>COUNT=$1
> fi
>
> for ((i=1;i<=$COUNT;i++));
> do
>ansible-playbook main.yml &
> done
> -
>
>
> --
> 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 post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/fb716bff-d851-4f21-8542-71241b925940%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Karl Auer

Email  : ka...@2pisoftware.com
Website: http://2pisoftware.com

GPG/PGP : 958A 2647 6C44 D376 3D63 86A5 FFB2 20BC 0257 5816
Previous: F0AB 6C70 A49D 1927 6E05 81E7 AD95 268F 2AB6 40EA

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2B%2BT08R%2BowoJVbVHFR-jfEG-PrWW9ktGzMN8myZUoYO-w59hLw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] High memory usage when running multiple ansible playbooks on localhost

2018-12-11 Thread pradeep.hk
When I fire off 100 copies of date, I hardly see any change in memory usage.
I even fired 100 copies of the following script, but I donot see any change 
in memory usage even when 100 such processes are running in parallel
---
#!/bin/bash
COUNT=100

for ((i=1;i<=$COUNT;i++)); 
do
  :
done
---

On Wednesday, December 12, 2018 at 12:26:04 PM UTC+5:30, Karl Auer wrote:
>
> what happens if you leave Ansible out and just fire off 100 copies of date?
>
> On Wed, Dec 12, 2018 at 5:54 PM pradeep.hk  > wrote:
>
>> I have a requirement to run lots of playbooks parallely on localhost. 
>> When I run 100 playbooks parallely (a simple one that executes the a 
>> shell command - date) , I see that
>> it consumes lot of resources (memory ~ 7GiB and CPU ~ 200%)
>> Is this on expected lines ?
>>
>> here is what I am trying to run
>> main.yml-
>>
>> - hosts: 127.0.0.1
>>
>>   connection: local
>>
>>   gather_facts: no
>>
>>   
>>
>>   tasks:
>>
>> - name: Get date 
>>
>>   shell: date
>>
>>   register: result
>>
>>   
>>
>> - debug:
>>
>> var: result.stdout
>> -
>>
>> I execute multiple of them with the following script
>>
>> -
>> #!/bin/bash
>> COUNT=1
>>
>> if [ $# -ne 0 ]
>> then
>>COUNT=$1
>> fi
>>
>> for ((i=1;i<=$COUNT;i++)); 
>> do 
>>ansible-playbook main.yml &
>> done
>> -
>>
>>
>> -- 
>> 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-proje...@googlegroups.com .
>> To post to this group, send email to ansible...@googlegroups.com 
>> .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/fb716bff-d851-4f21-8542-71241b925940%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> Karl Auer
>
> Email  : ka...@2pisoftware.com 
> Website: http://2pisoftware.com
>
> GPG/PGP : 958A 2647 6C44 D376 3D63 86A5 FFB2 20BC 0257 5816
> Previous: F0AB 6C70 A49D 1927 6E05 81E7 AD95 268F 2AB6 40EA
>

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/132ce039-63c5-4f0d-9ab6-051a0d630a26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.