Re: [ansible-project] Setting dns_servers on linux guest using vmware_guest module

2019-01-22 Thread Jörg Kastning
Hi, I just took a look at my template which is a minimal installation of RHEL 7. It has Perl installed, already. So all requirements should be met. Regards, Joerg Am Dienstag, 28. August 2018 13:59:41 UTC+2 schrieb Jonathan Lozada De La Matta: > > that sounds like on the guest that you create.

Re: [ansible-project] Ansible to windows client connection

2019-01-22 Thread sindhu shree
I did that. Am getting some certificate related errors. I just checked the connection with other windows power shell as follows. PS C:\Users\sindhu.p> winrs -r:https://ipaddress:5986/wsman -u:username -p:password ipconfig Error : Winrs error:The server certificate on the destination computer

Re: [ansible-project] Ansible to windows client connection

2019-01-22 Thread sindhu shree
Am trying for https. Power shell basic script as follows $url = "https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1"; $file = "$env:temp\ConfigureRemotingForAnsible.ps1" $username = "username" $password = "password " Set-ExecutionPolicy -Exec

Re: [ansible-project] Ansible to windows client connection

2019-01-22 Thread sindhu shree
I did that. Am getting some certificate related errors. I just checked the connection with other windows power shell as follows. PS C:\Users\sindhu.p> winrs -r:https://ipaddress:5986/wsman -u:username -p:password ipconfig Error : Winrs error:The server certificate on the destination computer

Re: [ansible-project] Ansible to windows client connection

2019-01-22 Thread sindhu shree
How to connect windows client without using user name and password, in linux we can have certificate for password less authentication. How can i achieve the same with windows client? On Saturday, January 19, 2019 at 4:12:43 AM UTC+5:30, Jordan Borean wrote: > > Setting the execution policy or

Re: [ansible-project] Ansible to windows client connection

2019-01-22 Thread sindhu shree
After seeing your suggestion, tried with Kerberos and NTLM This is what i see 10.67.104.45 | UNREACHABLE! => { "changed": false, "msg": "Failed to connect to the host via ssh: OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\nde

Re: [ansible-project] lineinfile . module not running

2019-01-22 Thread Dick Visser
On Fri, 18 Jan 2019 at 23:14, wrote: > > When i run the play the result shows > > PLAY RECAP > * > xxx-test-noc : ok=2changed=0unreachable=0failed=0

[ansible-project] ec2_vpc_route_table playbook error was: 'dict object' has no attribute subnet

2019-01-22 Thread Steve Button
I have a previously working piece of Ansible that I've inherited for a previous contractor, and I'm getting an error message that doesn't lead me in the right direction. I have tried searching for a few days now, with no joy, and my colleagues can't figure it out either. The Ansible in quest

[ansible-project] Re: Ansible s3_sync to upload multiple files

2019-01-22 Thread Kishore Ponniah
This has been resolved by adding a new task for the cross account role to assume from the same account and updated the account config with local account parameters. On Tuesday, January 15, 2019 at 4:44:34 PM UTC, Kishore Ponniah wrote: > > Hi everyone, > > I tried to debug s3_sync but one thing

Re: [ansible-project] ec2_vpc_route_table playbook error was: 'dict object' has no attribute subnet

2019-01-22 Thread Karl Auer
Use debug statements so that you know what is in " existing_nat_gateways.result" and "public_subnets_to_az". It looks to me as if there is no element called "subnet-0facefaceface9" in the dictionary "public_subnets_to_az" (that is a very cool subnet ID by the way). Regards, K. On Tue, Jan 22, 20

[ansible-project] Re: I am trying to install Java and set path by using Java tar file, I am getting error can anyone please suggest ASAP (Urgent)

2019-01-22 Thread ashok kumar penumudi
--- - hosts: cloudera tasks: - name: Download Java get_url: url=http://10.85.16.186/cm/ansible-2.7.5.tar.gz dest=/home/cdhadmin/Downloads - name: Extract Java command: tar zxvf /home/cdhadmin/Downloads/ansible-2.7.5.tar.gz - name: set path for java file line

[ansible-project] How to convert the cloudformation template_url parameter to be the Jinja template substitution

2019-01-22 Thread Kishore Ponniah
Hi All, The cloudformation template_url parameter requires Amazon S3 URL which is currently working by providing the complete URL of the file. But I wanted to convert that to be the Jinja template substitution. My playbook below: - name: create ps-cross-account-roles changeset cloud

Re: [ansible-project] ec2_vpc_route_table playbook error was: 'dict object' has no attribute subnet

2019-01-22 Thread Steve Button
Yes, the actual subnet id was subnet-0f18a0d4a7e9c7719. I was concerned that putting the subnet ID and other IDs into here might (somehow?) be a security issue. I've deleted the whole VPC now, so it won't be a problem. Here's the additional debug (which all looks fine to my eyes!!) TASK [aws_v

Re: [ansible-project] alternate shadow file?

2019-01-22 Thread eric.b.hymowitz via Ansible Project
Thanks for the tip. Setting up a chroot-only ansible-only user is a pretty good idea. In this particular case, after talking with a co-worker, I ended up simply copying one shadow file to the other (note that this is a redacted copy for informational purposes only) tasks: - name: "update

[ansible-project] accessing nested facts

2019-01-22 Thread christian . tremel
i have to follwing fact structure...how to access the "size_available" stuff from the opt filesystem? i tried this but it looks dorky... - name: check free space on /opt aix_filesystem: filesystem: /opt size: +1G state: present when: ansible

[ansible-project] How to assing ipv6 address(es) using ec2_instance module?

2019-01-22 Thread jp
I am trying to define new ipv6 address for ENI using ec2_instance module in ansible 2.7.6- I just don't get it how to define the task? output is just "changed: false" and nothing happens. Would anyone be able to point out how to add new and remove extra ipv6 addresses from running ec2 instance?

[ansible-project] getting error while checking which java using ansible

2019-01-22 Thread ruben melvin
Hi guys, I am trying to execute below ansible playbook. --- - name: "checking the java version" hosts: host remote_user: myremoteuser gather_facts: False become: yes become_user: serveruser become_method: 'sudo' tasks: - name: which java shell: which java args:

[ansible-project] How to copy latest git files to a remote host using playbook , do I need to give the git creds upfront?

2019-01-22 Thread arunkumar . singamsetty
Hi All, How to copy latest git files to a remote host using playbook , do I need to give the git creds upfront? 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 fro

[ansible-project] Re: Task history (per host)

2019-01-22 Thread David Moreau Simard
Hi ! Thanks for this creative use of ARA :) I wanted to let you know that in the upcoming release of 1.0, there'll be an API [1] as well as another feature I haven't talked about much yet: host aliases. Host aliases have your specific use case in mind -- being able to track results for a speci

[ansible-project] How to write playbook to access to servers that ansible master can not access directly?

2019-01-22 Thread yuechengww
Ansible master -ssh- hostA -ssh- hostB, ansible master can not access HostB directly. If I want to deploy services on hostB, can I configure hostA in a playbook, and include another playbook with hostB? E.g - hosts: HostA Tasks: - include: inner playbook.yml inner playbook:

[ansible-project] Re: ec2_vpc_route_table playbook error was: 'dict object' has no attribute subnet

2019-01-22 Thread Steve Button
I *have* noticed that when I destroy the VPC and re-run the job the existing nat gateways debug shows as "pending", even when I show the debug, put in a 20 minute delay and then show the debug again. This seems really odd to me. I even went on to the AWS console and the However, when I re-run

[ansible-project] Re: How to convert the cloudformation template_url parameter to be the Jinja template substitution

2019-01-22 Thread Kishore Ponniah
Hi all, This is resolved by using template_url: "https://s3.amazonaws.com/{{ build_account.account_config.s3_sync.params.bucket }}/{{ build_account.account_config.s3_sync.params.key_prefix }}ps-cross-account-iam-roles.yaml" Regards Kishore On Tuesday, January 22, 2019 at 12:32:02 PM UTC, Kish

Re: [ansible-project] PS Script Not Installing RDS

2019-01-22 Thread DC
Thank you Jordan and Karl for the replies, they are much appreciated! After making changes to my script per suggestions from both of you it still seems that the PS install script is not running. I have tried hard coding the server name with no luck. I have also used Jordan's ansible playbook

Re: [ansible-project] Filter hosts matching groups

2019-01-22 Thread Kai Stian Olstad
On Tuesday, 22 January 2019 08:00:02 CET Bruno Cochofel wrote: > Hi all, > > I have a custom CMDB and I've created a script for dynamic inventory. On that > script I have grouped hosts using several ways, just like VMware dynamic > inventory script. > > My question is, how can I match using mor

Re: [ansible-project] Re: Find matched element in key value

2019-01-22 Thread Kai Stian Olstad
On Monday, 21 January 2019 17:38:10 CET Rama wrote: > Hi, > > I am facing another issue. In the first scenario we used > *{{hw_health.storage['Controller > on System Board']['logical_drives'][0]['physical_drives'] | > selectattr('status', 'match', 'Failed') | list}} *where only one > physical_

Re: [ansible-project] How to write playbook to access to servers that ansible master can not access directly?

2019-01-22 Thread Kai Stian Olstad
On Tuesday, 22 January 2019 17:16:03 CET yuechen...@gmail.com wrote: > Ansible master -ssh- hostA -ssh- hostB, ansible master can not access HostB > directly. > If I want to deploy services on hostB, can I configure hostA in a playbook, > and include another playbook with hostB? > E.g - hosts: Ho

Re: [ansible-project] accessing nested facts

2019-01-22 Thread Kai Stian Olstad
On Tuesday, 22 January 2019 15:42:21 CET christian.tre...@itsv.at wrote: > > i have to follwing fact structure...how to access the "size_available" > stuff from the opt filesystem? > > i tried this but it looks dorky... > > - name: check free space on /opt > aix_filesystem: >

Re: [ansible-project] getting error while checking which java using ansible

2019-01-22 Thread Kai Stian Olstad
On Tuesday, 22 January 2019 16:05:06 CET ruben melvin wrote: > Hi guys, > > I am trying to execute below ansible playbook. > > --- > - name: "checking the java version" > hosts: host > remote_user: myremoteuser > gather_facts: False > become: yes > become_user: serveruser > become_met

Re: [ansible-project] Filter hosts matching groups

2019-01-22 Thread Bruno Cochofel
Hi, Thanks Kai, I will give it a try. Bruno On Tue, Jan 22, 2019, 19:36 Kai Stian Olstad < ansible-project+l...@olstad.com wrote: > On Tuesday, 22 January 2019 08:00:02 CET Bruno Cochofel wrote: > > Hi all, > > > > I have a custom CMDB and I've created a script for dynamic inventory. On > that

[ansible-project] Filter hosts matching groups

2019-01-22 Thread Tony Chia
Try this in your playbook hosts: linux:&prod:&datacenter_x -- 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] python: can't open file '/home/openwhisk/openwhisk/ansible/tmp/ansible-tmp-*/setup.py': Permission denied

2019-01-22 Thread axiqia
$ ansible-playbook -i environments/distributed/hosts prereq_build.yml -- become-method=sudo --ask-sudo-pass [DEPRECATION WARNING]: The sudo command line option has been deprecated in favor of the "become" command line arguments. This feature will be removed in version 2.6. Deprecation warnings