Re: [ansible-project] Parallel Tasks Execution in Ansible

2018-08-07 Thread stan . varlamov
I'm using AWX Workflow templates for basic sequencing and execution control of playbooks. There is some extra hardware required, but software-wise AWX is relatively low barrier to start running playbooks in a more organized manner than from the CLI. I wouldn't expect Ansible to provide a true

Re: [ansible-project] WinRM Connection Error

2018-08-07 Thread Jordan Borean
John Roh, this would be unrelated to the packer issues. It is already known that Packer's connection plugin is problematic with connecting to Windows hosts due to how their architecture is set up. Thanks Jordan -- You received this message because you are subscribed to the Google Groups

Re: [ansible-project] WinRM Connection Error

2018-08-07 Thread John Roh
I have the same issue that I rolled back to 2.4.1. I have updated the packer.py for the connection_plugsins from github and updated win_udpates from the github, both didn't worked at all. However, 2.4.1, I was able to create ami without having the winrm timeout along with packer v1.2.3. Good luck.

Re: [ansible-project] Code to attach an EBS volume during provisioning with CMK

2018-08-07 Thread John Roh
you mean, KMS encryption? If so, I put the packer code in the different threads. On Tue, Aug 7, 2018 at 2:24 PM, wrote: > Has anyone provisioned an EC2 instance and EBS volumes using CMK? > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project"

[ansible-project] Code to attach an EBS volume during provisioning with CMK

2018-08-07 Thread nicholas . noor
Has anyone provisioned an EC2 instance and EBS volumes using CMK? -- 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

Re: [ansible-project] Playbook formatting question

2018-08-07 Thread Kai Stian Olstad
On 07.08.2018 22:30, Syed Jafar wrote: Can someone please let me know what is wrong with my playbook (below) formatting. I get the following error message when I run the playbook. ERROR! 'copy' is not a valid attribute for a Play The error appears to have been in

Re: [ansible-project] Speeding up very large playbooks

2018-08-07 Thread Pshem Kowalczyk
Thank you for the all the responses so far. I had a look at mitogen, but in our setup almost all modules are run on the controller (templates, lookups etc), in fact we hardly use SSH at all (as targets are usually set up using XML-RPC or REST APIs), so I'm not sure how much it's going to help

[ansible-project] Playbook formatting question

2018-08-07 Thread Syed Jafar
Can someone please let me know what is wrong with my playbook (below) formatting. I get the following error message when I run the playbook. ERROR! 'copy' is not a valid attribute for a Play The error appears to have been in '/etc/ansible/playbooks/copy_files.yml': line 3, column 4, but may be

[ansible-project] Re: WinRM Connection Error

2018-08-07 Thread Jordan Borean
Can you give us the output of *pip list*, seems like pywinrm is receiving a None value where it is expecting a string. 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

[ansible-project] Re: WinRM Connection Error

2018-08-07 Thread 'J Hawkesworth' via Ansible Project
That's a new one on me, but I have a few suggestions of things you can try. Try using a hostname instead of an ip address. Try not running ansible from a venv (should be fine, but just peeling back a layer). Check the event log on the target windows box (eventvwr.msc) and see if there is any

[ansible-project] AWS Playbook says "NoCredentialsError: Unable to locate credentials"

2018-08-07 Thread ttwalto
** A heads up: the following post is very detailed, and I eventually figured out the problem. So if you're not up for wading through it, that's cool. I have an Ansible playbook that I'm trying to run. It creates an AWS VPC, so it requires AWS credentials. I've set up a couple of environment

[ansible-project] WinRM Connection Error

2018-08-07 Thread Scott Garcia
Trying to ping a windows machine, and I'm running into an ambiguous error from one of the python modules. Any suggestion on how to fix this? -- # ansible windows -i inventory - -m win_ping ansible 2.6.2 config file = /home/ec2-user/ansible.cfg configured module

Re: [ansible-project] Ansible for all instance in AWS environment

2018-08-07 Thread Ashish Gauli
The access key-pairs were created by different teams, and they have stored it somewhere. But it is a tedious task to ask for key-pair everytime a new pair is created. So, I was looking for an alternative. We have root access to the AWS account though. But that only enable aws command not the

[ansible-project] Re: Connecting to YUM for Playbooks

2018-08-07 Thread Tony Chia
Your ansible controller host is probably using a different yum repository than dlw0008a which has the git package. Try ssh into dlw0008a and run "yum search git" and compare that with "yum search git" from the place you said "yum install git" is working. yum search samba On Tuesday, August

Re: [ansible-project] Speeding up very large playbooks

2018-08-07 Thread Andrew Latham
Just in the case you have not found this resource try https://docs.ansible.com/ansible/2.5/user_guide/playbooks_async.html On Mon, Aug 6, 2018 at 6:46 PM Pshem Kowalczyk wrote: > Hi, > > We have a scenario where we pre-generate a lot of configuration on the > controller host (targets are

[ansible-project] Re: Connecting to YUM for Playbooks

2018-08-07 Thread Tony Chia
Can you add - to your playbook run and post the output ? When you run the yum_repository task/module, it should add a file to /etc/yum.repos.d Perhaps there is some permission issue? also try adding " become: yes" to the yum_repository task On Tuesday, August 7, 2018 at 7:47:31 AM

Re: [ansible-project] Re: Ansible slack callback plugin - not working - please help

2018-08-07 Thread Matt Martz
This was actually just recently resolved in devel: https://github.com/ansible/ansible/pull/43542 Backport PRs for 2.5 and 2.6 are open and waiting to be merged for the next releases. On Tue, Aug 7, 2018 at 10:12 AM Tony Chia wrote: > The error message says HTTP Error 403: Forbidden > > Are you

Re: [ansible-project] Re: Ansible slack callback plugin - not working - please help

2018-08-07 Thread Tony Chia
The error message says HTTP Error 403: Forbidden Are you able to use the same credential, webhook_url, etc using curl or any other tool outside of ansible? I suspect your haven't configured your slack channel properly On Thursday, July 26, 2018 at 2:56:44 AM UTC-7, Vinod Kumar wrote: > > Hi

[ansible-project] Re: Parallel Tasks Execution in Ansible

2018-08-07 Thread Tony Chia
Have you tried either one of the following? 1) adding tag to each yaml include file? Actually change the include to import_task and add a tag so you can run each yaml file using --tag with ansible-playbook i.e instead of - include: a.yml - include: b.yml Do this - import_tasks: a.yml

[ansible-project] Re: Connecting to YUM for Playbooks

2018-08-07 Thread Ros Ko
Yes! That works just fine. I can do all I need with YUM from the command line. Its just that Ansible will not connect since there is nothing in /etc/yum.repos.d. I did find this codeblock in the documentation and gathering details to see if it works - rhn_channel: name:

[ansible-project] Re: Connecting to YUM for Playbooks

2018-08-07 Thread Tony Chia
Are you able to run "sudo yum install git -y" ? Maybe the repo that you are using doesn't really have the git package. On Tuesday, August 7, 2018 at 6:51:24 AM UTC-7, Ros Ko wrote: > > Newbie question. I am trying to connect to yum to install packages but I > cannot. The servers are registered

[ansible-project] Connecting to YUM for Playbooks

2018-08-07 Thread Ros Ko
Newbie question. I am trying to connect to yum to install packages but I cannot. The servers are registered to a spacewalk server and the channel I need to pull from does not show up in /etc/yum.repos.d. I tried to put the base url of the repo it gets its packages from in the playbook, but it

[ansible-project] Re: Collect Azure VM facts

2018-08-07 Thread Matin Nayob
Hi Jordan, Amazing timing, thanks a lot for that. It works great! Cheers, Matin On Monday, 6 August 2018 20:40:17 UTC+1, Jordan Borean wrote: > > A VM facts module was just added to the codebase and will be available in > the 2.7 release by default. What you can do is create a copy of the file

Re: [ansible-project] Speeding up very large playbooks

2018-08-07 Thread Josh Smift
Even with Mitogen's current limitations, it cut run times about in half for our "do everything to all the hosts" playbook, which hits about 200 hosts with 1600 tasks in our biggest environment. On Tuesday, August 7, 2018 at 7:45:38 AM UTC-4, David Wilson wrote: > > Hi, > > Just to note Mitogen

[ansible-project] ecs_taskdefinition networking between to containers

2018-08-07 Thread ofir
Hi, is there planning to add to ecs_taskdefinition module NETWORK SETTINGS like in aws console? i am missing to main options in there, link and hostname -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and

Re: [ansible-project] Speeding up very large playbooks

2018-08-07 Thread David Wilson
Hi, Just to note Mitogen scales quite poorly with the number of hosts just now, due to a single-CPU bottleneck regardless of the forks setting. There should be a new development branch by the end of the week to resolve this, that can already fully saturate (100% utilization) 8 cores given 100

[ansible-project] Re: Win_update

2018-08-07 Thread 'J Hawkesworth' via Ansible Project
Can you share your playbook? I have definitely had this running in the past. Jon On Friday, August 3, 2018 at 7:13:15 PM UTC+1, Izzy Martinez wrote: > > Is anyone using win_update for their windows servers on vmware to patch > them Or working for them? For the life of me, I can't make them

Re: [ansible-project] Parallel Tasks Execution in Ansible

2018-08-07 Thread 'J Hawkesworth' via Ansible Project
See the discussion here for some other ideas: https://github.com/ansible/proposals/issues/31 On Tuesday, August 7, 2018 at 12:12:32 PM UTC+1, Karl Auer wrote: > > If you can't place the tasks in different playbooks, then they are not > truly independent. Why can you not use separate playbooks?

Re: [ansible-project] Parallel Tasks Execution in Ansible

2018-08-07 Thread Karl Auer
If you can't place the tasks in different playbooks, then they are not truly independent. Why can you not use separate playbooks? Also, you could use tags to achieve something similar. Tag your tasks "a", "b", "c" etc, then: ansible-playbook [...opts...] all .yml -t a > a.out 2>&1 &

Re: [ansible-project] Parallel Tasks Execution in Ansible

2018-08-07 Thread Saurabh
Not this wayI can't places tasks in different playbook.. In other way ? On Tuesday, August 7, 2018 at 12:19:05 PM UTC+5:30, Karl Auer wrote: > > One simple way is to put the tasks in separate playbooks, then: > > ansible-playbook [...opts...] a.yml > a.out 2>&1 & > ansible-playbook

[ansible-project] Re: Issue when backup cisco NXOS " fatal: [*************]: FAILED! => {"msg": "nothing to repeat"}"

2018-08-07 Thread Ganesh Nalawade
Can you please share the output of command in gist # show cdp global | include globally Also please raise a Github issue here with all the relevant details. Regards, Ganesh On Thursday, 5 July 2018 21:09:28 UTC+5:30,

[ansible-project] how to get the playbook directory in the python source

2018-08-07 Thread Sayed Anisul
Hello, Ansible has a variable "{{ playbook_dir }}" that gives the playbook directory path. Currently, I am doing in this way to get the playbook directory in the hive(python source code) task, but is there any other way to directly get the "{{ playbook_dir }}" path without passing as an

Re: [ansible-project] Speeding up very large playbooks

2018-08-07 Thread Kai Stian Olstad
On 07.08.2018 01:46, Pshem Kowalczyk wrote: We have a scenario where we pre-generate a lot of configuration on the controller host (targets are generally network devices, so not capable of running python). Typical generation process involves pulling data from a number odelef different systems

Re: [ansible-project] Re: ansible autofs mount

2018-08-07 Thread Karl Auer
Assuming your AMI as the plumbing to mount NFS, mount it in the userdata script, do your load, then unmount it. Our userdata variable in Ansible for new instances looks like this (non-EFS stuff removed): user_data: | #cloud-config runcmd: - file_system_id="{{ efs.efs.file_system_id

Re: [ansible-project] Parallel Tasks Execution in Ansible

2018-08-07 Thread Karl Auer
One simple way is to put the tasks in separate playbooks, then: ansible-playbook [...opts...] a.yml > a.out 2>&1 & ansible-playbook [...opts...] b.yml > b.out 2>&1 & ansible-playbook [...opts...] c.yml > c.out 2>&1 & ansible-playbook [...opts...] d.yml > d.out 2>&1 & Or if you are doing things

[ansible-project] Parallel Tasks Execution in Ansible

2018-08-07 Thread Saurabh
Hi, I would like to execute parallel tasks ? Below Example - include: a.yml - include: b.yml a.yml runs and b.yml should also run, b.yml shouldn't wait for completion of a.yml. is there any way to run parallel tasks ? Thank you ! -- You received this message because you are

Re: [ansible-project] Re: ansible autofs mount

2018-08-07 Thread Karl Auer
Is this at first boot only, or at every boot? On Tue, Aug 7, 2018 at 4:10 PM, containerkid wrote: > Dear All. > Any suggestions ? > > Thanks > > > > > On Monday, August 6, 2018 at 9:04:46 PM UTC+2, containerkid wrote: >> >> Dear All. >> I am working on a project where we have a scenario in

Re: [ansible-project] Ansible for all instance in AWS environment

2018-08-07 Thread Karl Auer
Can you access the instances at all? Using any account? Does that account have root access or sudo privileges? If so, then you can log in, and authorizze access to any existing account for any public key of your choice. It dioesn't have to be the one issued by AWS. If you do not have access that

[ansible-project] Re: ansible autofs mount

2018-08-07 Thread containerkid
Dear All. Any suggestions ? Thanks On Monday, August 6, 2018 at 9:04:46 PM UTC+2, containerkid wrote: > > Dear All. > I am working on a project where we have a scenario in which we have to > mount an NFS file system when each time system boots up ( we spin up using > AWS/GITLAB CI/CD

[ansible-project] Ansible for all instance in AWS environment

2018-08-07 Thread Ashish Gauli
I need to configure all AWS instances using ansible (for example install datadog agent), but I do not have key-pairs for each of those instances. Is there a way I can enable ansible-ssh without keypair? -- You received this message because you are subscribed to the Google Groups "Ansible