[ansible-project] Ansible Software Baseline - Legacy Projects

2018-05-03 Thread David Stubbersfield
Hi, I stumbled across the Ansible article below which is very relevant to a situation in my workplace; we have a need to configure server hosts in accordance with an approved software baseline (e.g. config.baseline file). https://www.ansible.com/blog/how-to-do-devops-without-leaving-legacy-behi

[ansible-project] Triggering AWS Lambda with Cloudwatch Events and/or S3 Events

2018-05-03 Thread pkaeding
I'm trying to set up some AWS Lambda jobs, some of which should be triggered by new objects being put in S3, and some of which should be triggered by CloudWatch Events. I've successfully created the lambda job, IAM roles, policies, and cloudwatch events rules, such that Ansible can set up about

[ansible-project] looking for script to create custom vpc with public and private subnet and deploy rds on private subnet

2018-05-03 Thread karthick selvam
--- - hosts: all connection: local gather_facts: no tasks: - ec2_vpc: state: present cidr_block: 172.22.0.0/16 resource_tags: { "Environment":"Development" } subnets: - cidr: 172.22.1.0/24 az: ap-south-1a resource_tags: { "En

Re: [ansible-project] Copy files with hostname to respective hosts

2018-05-03 Thread Andy Smith
Hello, On Thu, May 03, 2018 at 03:51:50AM -0700, Uday Medhi wrote: > host1.zip -to-> host1 > host2.zip -to-> host2 > host3.zip -to-> host3 > > I want ansible to look into the directory "deploy", check the files, match > it with the hostnames and copy to the respective hos

[ansible-project] Re: Ansible: multiple users to run playbook without sudo access to target machines

2018-05-03 Thread Ayad
Thanks John, I know we can do it on Tower, trying to get it to work without Tower. -- 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.

[ansible-project] Re: Ansible: multiple users to run playbook without sudo access to target machines

2018-05-03 Thread John G
We used Ansible Tower for a year. Now we use Rundeck to allow non-admin users to run playbooks. https://www.rundeck.com/ansible On Thursday, May 3, 2018 at 2:07:41 PM UTC-4, Ayad wrote: > > Hi All > i'm trying to give a few users access to an an Ansible server to run > playbooks to do Applicatio

[ansible-project] trying vagrant + ansible for windows server target. cant win_ping

2018-05-03 Thread pixel fairy
host: ubuntu-16.04 vagrant: 2.0.4 vagrant-hostmanager (1.8.8) vagrant-libvirt (0.0.43) vagrant-mutate (1.2.0) vagrant-sshfs (1.3.1) there is a virtualbox version of the same windows box. used pip to update winrm (and also had to use pip for openssl) same results without the pywinrm warning. VA

[ansible-project] Ansible 2.5 virtual cpu and socket not work to gather , as well customvalues

2018-05-03 Thread talha jilal
1- Same code with customvalue works for me in ansible 2.4 but does not work on ansible 2.5. 2- Ansible 2.5 ony take one option at a time, num_cpus or cpu_cores_per_sockets Any idea folks I am report this error second time in group., My playbook looks something like this . #

[ansible-project] Ansible: multiple users to run playbook without sudo access to target machines

2018-05-03 Thread Ayad
Hi All i'm trying to give a few users access to an an Ansible server to run playbooks to do Application recycle on a few servers, these users should not have access to the target servers for security reason, so there is what i have and what has been done. ansible --version ansible 2.4.2.0 con

Re: [ansible-project] ansible adhoc command did not return

2018-05-03 Thread Kai Stian Olstad
On 03.05.2018 08:15, Jörg Kastning wrote: Could someone give some advise what to do to gather debug information when this happens the next time? https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html#debugging-remote -- Kai Stian Olstad -- You received this message

[ansible-project] Re: VMware - convert template to virtual machines

2018-05-03 Thread talha jilal
Hello Folks, with ansible 2.5 we can control cpu cores but not cpu virutal number of sockets. Any idea ? Thanks On Friday, 27 April 2018 09:55:55 UTC-4, Ted wrote: > > Hi All, > > I'm looking for a way to convert a VMware template to a virtual machine > using Ansible. > The work flow is:

[ansible-project]

2018-05-03 Thread Ruslan Dzhumaiev
Ruslan Dzhumaiev +380634341249 Telegram, WhatsApp, Viber -- 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

[ansible-project] ansible vmware_guest customvalues and annotation

2018-05-03 Thread talha jilal
Hello Folks , I upgrade ansible 2.4 to 2.5 but my customvalue option stop working. My annotation attributes already defined in template, and i have the following syntax. I downgrade my ansible 2.4 and annotation start working for me. customvalues: - annotation: key: APPLICATION value: "{

Re: [ansible-project] Re: while trying to stop or start service i am seeing an error Interactive authentication required

2018-05-03 Thread sandeep kumar
Hi Hans I have edited the yml file with become =true in the yml it started to work when i exeucte the playbook using sudo yml file --- - hosts: nodes tasks: - name: intall a httpd pkg become: true service: name=cron state=started command: ansible-playbook services.yml --user=

Re: [ansible-project] blank [ERROR]: when running ansible or ansible-playbook on ansible version 2.5.1

2018-05-03 Thread Matt Martz
There was a bug that caused that empty ERROR to be displayed. It is a false positive, and does not indicate an actual error. The fix will be included in the 2.5.3 release. On Thu, May 3, 2018 at 4:50 AM, Abey Thomas wrote: > Hi, > > I am using ansible version 2.5.1 on Centos 7. Whenever I try t

[ansible-project] check if the release is already deployed and tomcat is running, if true then skip the roles

2018-05-03 Thread Robert Chen
say my the release is under /home/app/10.1.1222/... how to implement this in ansible playbook: check if the release is already deployed and tomcat is running, if true then skip the roles -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To un

Re: [ansible-project] About the new loop construct, giving feedback

2018-05-03 Thread Brian Coca
That is on my list, also making sure alternative filters exist for all the 'non lookup lookups' (why dict2items exists), iirc only 'subelements' is not covered. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To un

Re: [ansible-project] Is there any open source GUI available for Ansible?

2018-05-03 Thread Brian Coca
https://github.com/ansible/awx -- -- 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

[ansible-project] Is there any open source GUI available for Ansible?

2018-05-03 Thread Dinesh Vashisht
Team, Is there any open source GUI available for Ansible? We have recently implemented Ansible 2.5.0, but the team new to it is not comfortable using CLI. Thank you, Dinesh -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe f

[ansible-project] Copy files with hostname to respective hosts

2018-05-03 Thread Uday Medhi
Hi, I have three files, host1.zip, host2.zip, host3.zip which are in the ansible server itself in a directory named "deploy". And I have to copy the files the respective hosts. host1.zip -to-> host1 host2.zip -to-> host2 host3.zip -to-> host3 I want ansible to look into

[ansible-project] Re: Dynamically expand dictionary variables

2018-05-03 Thread Kees de Jong
Got it, it works with: "{{ packages.system[ansible_distribution] }}" On Thursday, May 3, 2018 at 11:26:40 AM UTC+2, Kees de Jong wrote: > > I'm trying to unify the way I install packages, I have the following > vars/main.yml: > --- > packages: > system: > common: > - crudini >

[ansible-project] blank [ERROR]: when running ansible or ansible-playbook on ansible version 2.5.1

2018-05-03 Thread Abey Thomas
Hi, I am using ansible version 2.5.1 on Centos 7. Whenever I try to use ansible command line or ansible-playbook with ec2.py on AWS I get a " [ERROR]:" after Using /etc/ansible/ansible.cfg as config file. The playbook runs fine after showing one blank error word. I tried using but the blan

[ansible-project] Dynamically expand dictionary variables

2018-05-03 Thread Kees de Jong
I'm trying to unify the way I install packages, I have the following vars/main.yml: --- packages: system: common: - crudini - dump - duplicity - git - mdadm - irssi - lynx - postfix - powerline - rsync - tmux - vim D

Re: [ansible-project] About the new loop construct, giving feedback

2018-05-03 Thread Eric Lavarde
Hi, On 2018-05-02 21:35, Brian Coca wrote: > Well, nested is one of the 'bad lookups' i was referring to, its > cleaner as a filter: Starting to understand what you and Matt are trying to tell me, I'm now at the point where I think that what's missing is a mapping between the old with_/lookup app