Re: [ansible-project] Can not able to ssh between two ec2 instances

2018-08-10 Thread Karl Auer
This is a big question, with far too little information to resolve easily. Here is a troubleshooting list for you (or anyone) having connectivity issues generally and ssh issues specifically. 1: Check the addresses. Make sure you are using the correct name or IP address for the target instance.

Re: [ansible-project] Check if disk is in use before partitioning?

2018-08-10 Thread Sakthivel G
You can use df - h Linux command to check mounted disks On Sat 11 Aug, 2018, 5:09 AM Dylan Martin, wrote: > I all. > > I've used parted and lvm (lvg & lvol) to set up machines, but I recently > broke a system when I repartitioned a disk that was already in use. > (Wooops!) > > Does anyone have

[ansible-project] Re: Check if disk is in use before partitioning?

2018-08-10 Thread Shawn Singh
Might be environment/company specific, but in my company we make a partition on each disk so I usually only operate on a disk where the number of partitions is {}. I've heard discussions of folks using the entire disk, but that isn't something we do, so isn't an issue/concern. On Friday,

Re: [ansible-project] Check if disk is in use before partitioning?

2018-08-10 Thread Jonathan Lozada De La Matta
you can see what is mounted with ansible facts. On Fri, Aug 10, 2018 at 7:39 PM Dylan Martin wrote: > I all. > > I've used parted and lvm (lvg & lvol) to set up machines, but I recently > broke a system when I repartitioned a disk that was already in use. > (Wooops!) > > Does anyone have a good

[ansible-project] Check if disk is in use before partitioning?

2018-08-10 Thread Dylan Martin
I all. I've used parted and lvm (lvg & lvol) to set up machines, but I recently broke a system when I repartitioned a disk that was already in use. (Wooops!) Does anyone have a good idea how to determine if a block device is already in use? By "in use" I mean, mounted in some way. Thanks!

Re: [ansible-project] Explain ec2_group module rules section?

2018-08-10 Thread Karl Auer
In a rule, you can specify a group by id or name, just as you can specify a cidr_ip. Anything with the specified group attached to it will be allowed. Dunno about group_desc,, haven't used it. Regards, K. On Sat, Aug 11, 2018 at 12:57 AM, wrote: > I don't understand the rules section of the

Re: [ansible-project] default filter on with_items with from_json

2018-08-10 Thread rjwagner . dba
Ah, yes. Makes sense now. Thanks Kai. Rob -- 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

[ansible-project] Need some help using Kerberos Authentication for Windows Target

2018-08-10 Thread Shawn Singh
Hello, I've configured a Windows 2016 Server using ConfigureRemotingForAnsible.ps1 and am able to do a simple ping test using basic auth. Command I'm using is: ansible all -i myinventory -m win_ping I get a pong back. When trying to use Kerberos, authentication ... different story: My

Re: [ansible-project] ansible command on messages

2018-08-10 Thread Jonathan Lozada De La Matta
I think vault its a better option and integrates better. On Fri, Aug 10, 2018 at 1:30 PM Jobin A T. A T. wrote: > Hai please use this method I tested this and it successfully worked > > First generate an encrypted password > Using > > Python code for generating SHA512 password > python -c "from

Re: [ansible-project] ansible command on messages

2018-08-10 Thread Jobin A T. A T.
Hai please use this method I tested this and it successfully worked First generate an encrypted password Using Python code for generating SHA512 password python -c "from passlib.hash import sha512_crypt; import getpass; print sha512_crypt.encrypt(getpass.getpass())" And use tasks: - name:

Re: [ansible-project] Can not able to ssh between two ec2 instances

2018-08-10 Thread Jonathan Lozada De La Matta
what error are you getting? do you have enough permissions on the other side? On Fri, Aug 10, 2018 at 11:25 AM Kiran Sonawane < kiransonawane.nm...@gmail.com> wrote: > Ssh-copy-i is not working. It gives an error. > > On Aug 10, 2018 8:39 PM, "Jonathan Lozada De La Matta" < >

Re: [ansible-project] Can not able to ssh between two ec2 instances

2018-08-10 Thread Kiran Sonawane
Ssh-copy-i is not working. It gives an error. On Aug 10, 2018 8:39 PM, "Jonathan Lozada De La Matta" wrote: did you put the public keys on the host your trying to connect as? try ssh-copy-id since it copies the public keys and adds the correct permissions. Did you also use ssh-add? what errors

[ansible-project] Re: WinRM Connection Error

2018-08-10 Thread 'J Hawkesworth' via Ansible Project
Ok a couple of other ideas... See if the s2012r2 target firewall is blocking traffic to/from port 5985 If I recall the configure for remoting script adds a rule for this but worth checking all the profiles. Also worth checking for any firewalling on your ansible host as well while you are at

Re: [ansible-project] Can not able to ssh between two ec2 instances

2018-08-10 Thread Jonathan Lozada De La Matta
did you put the public keys on the host your trying to connect as? try ssh-copy-id since it copies the public keys and adds the correct permissions. Did you also use ssh-add? what errors are you getting? On Fri, Aug 10, 2018 at 11:06 AM Kiran Sonawane < kiransonawane.nm...@gmail.com> wrote: >

Re: [ansible-project] Can not able to ssh between two ec2 instances

2018-08-10 Thread Kiran Sonawane
Since I enabled all shh I can ping on any instances but using public private key I can't. On Fri, Aug 10, 2018, 7:54 PM Jonathan Lozada De La Matta < jloza...@redhat.com> wrote: > are you able to ssh in regularly without ansible and what errors are you > getting? > > On Fri, Aug 10, 2018 at 9:58

[ansible-project] Explain ec2_group module rules section?

2018-08-10 Thread ttwalto
I don't understand the rules section of the ec2_group module. I wish the documentation explained it, but it doesn't. I says "see example". The description right now, Ansible 2.6, is: List of firewall inbound rules to enforce in this group (see example). If none are supplied, no inbound rules

[ansible-project] Re: Can not able to ssh between two ec2 instances

2018-08-10 Thread Tony Chia
Please run the ssh command with - and display the output here On Friday, August 10, 2018 at 6:58:30 AM UTC-7, Kiran Sonawane wrote: > > Hey, > I'm trying to SSH between two instances to practice Ansible on aws > instances but I'm not able to create an ssh connection between instances. > Can

Re: [ansible-project] Can not able to ssh between two ec2 instances

2018-08-10 Thread Jonathan Lozada De La Matta
are you able to ssh in regularly without ansible and what errors are you getting? On Fri, Aug 10, 2018 at 9:58 AM Kiran Sonawane < kiransonawane.nm...@gmail.com> wrote: > Hey, > I'm trying to SSH between two instances to practice Ansible on aws > instances but I'm not able to create an ssh

[ansible-project] Can not able to ssh between two ec2 instances

2018-08-10 Thread Kiran Sonawane
Hey, I'm trying to SSH between two instances to practice Ansible on aws instances but I'm not able to create an ssh connection between instances. Can someone please help me. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe

Re: [ansible-project] ansible command on messages

2018-08-10 Thread Alfredo De Luca
no_log worked perfectly! thanks On Fri, Aug 10, 2018 at 1:32 PM Alfredo De Luca wrote: > Thanks heaps. there is also no_target_syslog... which it could be more > appropriate for what I need to do. > > Cheers > > > On Fri, Aug 10, 2018 at 1:15 PM Jonathan Lozada De La Matta < >

Re: [ansible-project] [Network modules] Managed nodes requirements about python

2018-08-10 Thread Niko
thanks again! I appreciated your swift answer. -- 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

Re: [ansible-project] ansible command on messages

2018-08-10 Thread Alfredo De Luca
Thanks heaps. there is also no_target_syslog... which it could be more appropriate for what I need to do. Cheers On Fri, Aug 10, 2018 at 1:15 PM Jonathan Lozada De La Matta < jloza...@redhat.com> wrote: > have you tried to do no_log: True ? > > >

Re: [ansible-project] [Network modules] Managed nodes requirements about python

2018-08-10 Thread Jonathan Lozada De La Matta
as far as I know is to speed up the process instead of doing the work from another location, it copies the files locally and runs the scripts. On Fri, Aug 10, 2018 at 7:22 AM Niko wrote: > Thanks a lot. I understood the differences and we don't need python for > managed nodes when we user

Re: [ansible-project] [Network modules] Managed nodes requirements about python

2018-08-10 Thread Niko
Thanks a lot. I understood the differences and we don't need python for managed nodes when we user network modules. Just my curiosity, in case of Linux, what is the benefits of copying and executing python codes on Linux hosts? It supposed that ansible can manage non-network nodes such a Linux

Re: [ansible-project] ansible command on messages

2018-08-10 Thread Jonathan Lozada De La Matta
have you tried to do no_log: True ? https://docs.ansible.com/ansible/2.5/reference_appendices/faq.html#how-do-i-keep-secret-data-in-my-playbook On Fri, Aug 10, 2018 at 7:01 AM Alfredo De Luca wrote: > Hi all. > With ansible we are changing root passwords on our machines. the root > password is

[ansible-project] ansible command on messages

2018-08-10 Thread Alfredo De Luca
Hi all. With ansible we are changing root passwords on our machines. the root password is in a vault so all ok But I find our the the command we run to change the password is visible on /var/log/messages ..included the password itself How can I remove that or do that in a different way?

[ansible-project] Re: replace or lineinfile ?

2018-08-10 Thread Henrik Schuetze
Thanx, i will give it a try. Am Freitag, 10. August 2018 11:09:44 UTC+2 schrieb Henrik Schuetze: > > For a replication project i have to dynamic create an .sql for execute > with mariadb. > i have two hosts (A and B) in my host variables, both with name, ip and ID. > > i think about create a

Re: [ansible-project] [Network modules] Managed nodes requirements about python

2018-08-10 Thread Jonathan Lozada De La Matta
checkout this blog https://www.ansible.com/blog/coming-soon-networking-features-in-ansible-2.5 and https://docs.ansible.com/ansible/latest/network/index.html They are all correct. Its just done different for networking. On Fri, Aug 10, 2018 at 6:50 AM Niko wrote: > ## Question > > - Could we

[ansible-project] [Network modules] Managed nodes requirements about python

2018-08-10 Thread Niko
## Question - Could we use network modules(such a ios_command) on the network nodes that cannot execute python? ## Purpose - I want to manage the network nodes(cisco) that do not have python by ansible playbook. ex. "ios_command: show version", "using

Re: [ansible-project] replace or lineinfile ?

2018-08-10 Thread Kai Stian Olstad
On 10.08.2018 11:09, Henrik Schuetze wrote: For a replication project i have to dynamic create an .sql for execute with mariadb. i have two hosts (A and B) in my host variables, both with name, ip and ID. i think about create a local file, copy it to the destination hosts and then ? i need

[ansible-project] replace or lineinfile ?

2018-08-10 Thread Henrik Schuetze
For a replication project i have to dynamic create an .sql for execute with mariadb. i have two hosts (A and B) in my host variables, both with name, ip and ID. i think about create a local file, copy it to the destination hosts and then ? i need to put the ip address from Server A in the file

[ansible-project] Re: Problem replace with variable

2018-08-10 Thread Henrik Schuetze
Thanx. I have found an other way. The my.cnf comes from me. As a template. I put a field with the server id into my server variables, and refer it in the template. Server: default_ip: 127.0.0.1 ansible_ssh_host: 127.0.0.1 mysql_db_id : 7 and in my template i say: server-id = {{

[ansible-project] It's back: Timeout (XXs) waiting for privilege escalation prompt

2018-08-10 Thread John S
This problem is back, and it is worse than ever in 2.6.1, from epel, on el7.5. If I run a playbook (just one or two simple tasks) vs 50 hosts, I'll have a dozen that fail due to timeout... When I run the same playbook vs same hosts from server with ansible-2.4.2.0-2.el7 ... it works