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

2018-05-04 Thread Arbab Nazar
Please use this as reference: https://github.com/arbabnazar/ansible-aws-roles, hope you will get all the desired information On Friday, May 4, 2018 at 3:08:33 AM UTC+5, karthick selvam wrote: > > --- > - hosts: all > connection: local > gather_facts: no > tasks: > - ec2_vpc: >

[ansible-project] AWS dynamic inventory not working - on ONE account

2018-05-04 Thread Karl Auer
I manage multiple AWS accounts. On all but one, I can use the ec2.py dynamic inventory script. On that one account, the inventory is always empty: kauer@kt:~/dev/ansible$ scripts/ec2.py --list { "_meta": { "hostvars": {} } } So authentication to AWS works. There are definitely running

Re: [ansible-project] ansible playbook become-method not working

2018-05-04 Thread Brian Coca
It is the same password, it is just asking for the 'default/current' become method, you can ignore the display and we have changed it to the neutral 'become' in recent versions. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible

Re: [ansible-project] CLI "choco install rsat" works win_chocolatey install rsat fails

2018-05-04 Thread Jordan Borean
No idea on that, looks like an issue in the install script for the rsat package. You can try to just become an existing user and not SYSTEM account like so - win_chocolatey: name: rsat state: present vars: ansible_become: yes ansible_become_method; runas

Re: [ansible-project] CLI "choco install rsat" works win_chocolatey install rsat fails

2018-05-04 Thread Jordan Borean
Yep, looks like we should update the docs to be correct, you can just do *- win_shell: whoami* to test it out. -- 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

Re: [ansible-project] "ERROR: Cannot process argument transformation on parameter 'url64bit'. Cannot convert value to type System.String.",

2018-05-04 Thread Bob Tanner
Cannot seem to win! chocolatey_msu: - rsat - name: Install host specific msu (choco) win_chocolatey: name: "{{ item }}" state: "present" when: - host_chocolatey_msu is defined with_items: - "{{ host_chocolatey_msu }}" vars: ansible_become: yes

Re: [ansible-project] CLI "choco install rsat" works win_chocolatey install rsat fails

2018-05-04 Thread Bob Tanner
I am attempting to re-open https://github.com/ansible/ansible/issues/39384#issuecomment-384756704 -- Bob Tanner Clash of Clan Tag: #LUJ2CPU Follow me on Facebook and

[ansible-project] Re: CLI "choco install rsat" works win_chocolatey install rsat fails

2018-05-04 Thread bob
Still having problems installing .msu's with win_chocolatey. chocolatey_msu: - rsat - name: Install msu (choco) win_chocolatey: name: "{{ item }}" state: "present" when: - chocolatey_msu is defined with_items: - "{{ chocolatey_msu }}" become: yes become_method:

[ansible-project] Re: recommended indent style for tasks

2018-05-04 Thread Varun Chopra
This is: But later on, in the "Basics" header there's an alternate style, where each task item is indented a shift-width deeper then the "task:" keyword. On Tuesday, May 1, 2018 at 5:07:09 PM UTC+5:30, Josef Fortier wrote: > > I'm modifying an EOL vim ansible plugin for my own use and am

Re: [ansible-project] Apache Karaf Output via Ansible

2018-05-04 Thread Bishwajit Samanta
I resolved the issue.. :) On Fri 4 May, 2018, 17:24 Bishwajit Samanta, wrote: > Hi Team, > > Is there any way to get the output of Karaf through ansible:: > > If i am executing the below command::- > > # echo encrypt-text abcd | ./client ( I am getting the below

[ansible-project] Re: ansible replace with_items prepends the letter 'u'

2018-05-04 Thread expectant . sprite
I'm not sure what I was thinking but this has nothing to do with the 'u' - the code is working just as expected since these lines do not yet exist. What I needed to use was lineinfile, not replace. Changes highlighted below and it's working now. > --- > - hosts: all > gather_facts: False >

Re: [ansible-project] Extract data from task in a variable

2018-05-04 Thread Kai Stian Olstad
On 04.05.2018 15:06, Uday Medhi wrote: Hi, This is a role i wrote which will get the IP addresses of the Hosts and then copy a file from the ansible server to the host server. - name: Seeking the host IP address shell: | ifconfig eth0 | grep "inet addr" | cut -d ':' -f 2 | cut -d ' ' -f

Re: [ansible-project] ansible replace with_items prepends the letter 'u'

2018-05-04 Thread Toshio Kuratomi
Is it showing up in your sshd_config file or just in the display of what each item was? -Toshio On Fri, May 4, 2018, 8:55 AM wrote: > I'm trying to use the replace module to update SSL ciphers and seem to be > running into a Unicode issue. > > The code: > > --- > -

[ansible-project] ansible replace with_items prepends the letter 'u'

2018-05-04 Thread expectant . sprite
I'm trying to use the replace module to update SSL ciphers and seem to be running into a Unicode issue. The code: --- - hosts: all gather_facts: False become: True vars: text_for_EL6: - { regexp: '^KexAlgorithms', line: 'KexAlgorithms diffie-hellman-group-exchange-sha256' }

Re: [ansible-project] Re: Why playbook take wrong values for group variables?

2018-05-04 Thread Marcos Alano
Interesting. Could you show us what yours "hosts:" line on playbook.yml? On Fri, May 4, 2018 at 10:43 AM Brian Coca wrote: > The `hosts:` keyword is only used to select which hosts get targeted, > it has no influence on group membership, any host is ALWAYS a member > of ALL the

[ansible-project] ansible hosts file yaml errors DUO authentication

2018-05-04 Thread Tedley Meralus
I added a new group in my hosts file in ansible and now when I try to ping I get this error. $ ansible book01 -m ping [WARNING]: * Failed to parse /etc/ansible/hosts with yaml plugin: Syntax Error while loading YAML. The error appears to have been in '/etc/ansible/hosts': line 55, column

[ansible-project] Extract data from task in a variable

2018-05-04 Thread Uday Medhi
Hi, This is a role i wrote which will get the IP addresses of the Hosts and then copy a file from the ansible server to the host server. - name: Seeking the host IP address shell: | ifconfig eth0 | grep "inet addr" | cut -d ':' -f 2 | cut -d ' ' -f 1 register: ipv4_address - debug:

[ansible-project] Re: Why playbook take wrong values for group variables?

2018-05-04 Thread Олег Боровых
hi Tony, i have no files at all: /group_vars/all.yml /inventories/group_vars/all.yml and i try to put "hosts: *group_B", *but it not resole this issue. Playbook apply changes to the servers from right group but, variables it take from neighborhood group_vars/file. I have

[ansible-project] Apache Karaf Output via Ansible

2018-05-04 Thread Bishwajit Samanta
Hi Team, Is there any way to get the output of Karaf through ansible:: If i am executing the below command::- # echo encrypt-text abcd | ./client ( I am getting the below output ) 1249 [sshd-SshClient[6d78f375]-nio2-thread-2] WARN org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier

[ansible-project] Re: copying files stuck after 5th attempt

2018-05-04 Thread Jordan Borean
You are right that win_copy isn't very fast due to it running over WinRM but this issue has already been identified and fixed in 2.5 https://github.com/ansible/ansible/pull/37964. If you update to either 2.5.1 or 2.5.2 the issue will go away. Thanks Jordan -- You received this message

[ansible-project] Re: Infoblox - nios_host_record issue

2018-05-04 Thread ADB101
OK, Looks likes the way that InfoBlox as been setup and I need to add a "fixed address" rather than a host record. Aidan On Friday, May 4, 2018 at 10:57:44 AM UTC+1, ADB101 wrote: > > Hi all, > > I need to get IPs from an Infoblox server from an Ansible playbook. I am > successfully obtaining

[ansible-project] Re: copying files stuck after 5th attempt

2018-05-04 Thread Benny L.
Ok, as I read everywhere that winrm is not made for perfomance copy, I decided to go with win_get_url module and put the file to copy on the webserver. Everything seems pretty smooth and i keep loving ansible and the windows modules, even if i used to manage linux servers. Am Freitag, 4. Mai

[ansible-project] Infoblox - nios_host_record issue

2018-05-04 Thread ADB101
Hi all, I need to get IPs from an Infoblox server from an Ansible playbook. I am successfully obtaining the next IP address by using the nios_next_ip lookup within the correct IP range. I am then using the "nios_host_record" task to attempt to assign that IP in Infoblox. (Using Ansible 2.5.2)

[ansible-project] copying files stuck after 5th attempt

2018-05-04 Thread Benny L.
Hello, I have following Problem on ansible 2.5.0. I try to copy a folder from my ansible-server(debian) to a windows 10 client using winrm. the playbook itself works pefectly. the problem is, that it has to copy to 20 machines when running the playbook and it stucks after 5th machine. when

[ansible-project] ImportError: cannot import name callbacks

2018-05-04 Thread niraj pandey
I am getting the following error while using ansible module in my python script. Traceback (most recent call last): File "./ansible_playbook.py", line 2, in from ansible import playbook, callbacks ImportError: cannot import name callbacks Python version: 2.7.10 Ansible module version

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

2018-05-04 Thread Dinesh Vashisht
Thank you Brian. On Thu, May 3, 2018 at 6:46 PM, Brian Coca wrote: > https://github.com/ansible/awx > > > > > -- > -- > Brian Coca > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Ansible Project" group. > To unsubscribe