[ansible-project] Re: UNREACHABLE! => {"changed": false, "msg": "Authentication or permission failure.

2018-12-21 Thread Tony Chia
Since you are the karol user, why do you have to elevate the privilege by adding sudo before ansible-playbook only to downgrade it to karol with -u and then upgrade to root with --become? Why can't you just run ansible-playbook -i hosts playbook.yml without the "sudo", "-u karol" or

Re: [ansible-project] filtering out attributes

2018-12-21 Thread James Cassell
Look at the json_query filter. You can use it with JMESPath queries to extract what you need. V/r, James Cassell On Fri, Dec 21, 2018, at 6:13 PM, Justin DynamicD wrote: > First I apologize if this was covered elsewhere, but nothing seemed to > match my scenario... at least not in a way I

[ansible-project] filtering out attributes

2018-12-21 Thread Justin DynamicD
First I apologize if this was covered elsewhere, but nothing seemed to match my scenario... at least not in a way I could recreate. I have a role that builds a list of dictionaries. I've found it fairly easy to extend this list, add attributes to individual items, etc, but I'm having a real

[ansible-project] Re: task with delegate_to fails ansible_remote_tmp is set

2018-12-21 Thread asilver
Thank you Jordan. I did not know you could set ansible_remote_tmp at the task level. I will try that. As a work around before I saw your answer, I just build a filter to return the md5 as follows: - name: Calculate md5sum from local file set_fact: qcow_md5sum="{{

Re: [ansible-project] Vault : ordinal not in range

2018-12-21 Thread YvanM
Thanks for your fast answer. I am using Ansible 2.7.1+dfsg-2, but I am almost sure I had the same issue with 2.6.x. My vault is the following: $ANSIBLE_VAULT;1.1;AES256 38613831366531323432326436616438363765303566326439336563313534386533396236383035

Re: [ansible-project] UNREACHABLE! => {"changed": false, "msg": "Authentication or permission failure.

2018-12-21 Thread Karol OĊ‚tarzewski
Hello, So how can I solve my issue? (I don't have any idea what I can do with information below) This might happen if for some reason ansible was previously run on that > host with root privileges > On Thursday, 20 December 2018 22:42:55 UTC+1, Pshem Kowalczyk wrote: > > Hi, > > This might

Re: [ansible-project] Vault : ordinal not in range

2018-12-21 Thread Dick Visser
What version of ansible are you using on this host? I don't think it matters if the file you're encrypting contains ASCII or UTF8, or anything else, really. ansible can encrypt blobs just a well. What does you encrypted vars file look like? Because that *should* be only numbers, with a header

[ansible-project] Vault : ordinal not in range

2018-12-21 Thread YvanM
Hi, I am using Ansible from a Debian testing host. Each time I try to use a vault file it makes Ansible crash. The content of the vault file is really simple: dyndns_pwd: 1234 smtpd_pwd: 1234 I am sure that it contains only ASCII characters. Here is the command line I use: ansible-playbook

Re: [ansible-project] Re: vmware_vm_inventory plugin, how is it supposed to be used ?

2018-12-21 Thread Matt Martz
I've looked at the plugin a little more closely just now, and it looks to be missing this functionality completely. I've logged an issue for this at https://github.com/ansible/ansible/issues/50249 On Fri, Dec 21, 2018 at 9:47 AM Jimmy Htor wrote: > Anyone?? > > -- > You received this message

[ansible-project] Re: vmware_vm_inventory plugin, how is it supposed to be used ?

2018-12-21 Thread Jimmy Htor
Anyone?? -- 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 group, send email to

Re: [ansible-project] Prefered way to launch a vm on vmware

2018-12-21 Thread Michael W
Thanks Luke, but this requires networking again which i cant ensure due to topology and some wired policies. Am Freitag, 21. Dezember 2018 14:07:32 UTC+1 schrieb Lucas Jackson: > > Hey Michael, > > Might be worth looking at the wait_for_connection module, I use this with > my vmware

Re: [ansible-project] Prefered way to launch a vm on vmware

2018-12-21 Thread lucas.adam.jackson
Hey Michael, Might be worth looking at the wait_for_connection module, I use this with my vmware deployments and it seems to work pretty good. https://docs.ansible.com/ansible/latest/modules/wait_for_connection_module.html Luke Sent from my Samsung Galaxy smartphone. Original message

Re: [ansible-project] Remove and create directory in a single task is failing

2018-12-21 Thread Kai Stian Olstad
On Friday, 21 December 2018 11:55:19 CET anushakeshiped...@gmail.com wrote: > Hi Team, > > I am trying to remove and create the directory in single task but it is > failing. Could someone please help. > > vars/main.yml > > SAMPLE: > - { src: '/tmp/abc.war', dest: '/tmp/test/' } > - { src:

Re: [ansible-project] Remove and create directory in a single task is failing

2018-12-21 Thread Dick Visser
This is the same question as you asked in an earlier thread - to which you got two answers. Without any feedback on how that worked out for you (did you actually try them? did they work?), you are now trying almost the same solution again, which is failing in a similar way. Instead of shoehorning

[ansible-project] Remove and create directory in a single task is failing

2018-12-21 Thread anushakeshipeddy4
Hi Team, I am trying to remove and create the directory in single task but it is failing. Could someone please help. vars/main.yml SAMPLE: - { src: '/tmp/abc.war', dest: '/tmp/test/' } - { src: '/tmp/def.war', dest: 'tmp/test/' } - { src: '/tmp/xyz.war', dest: '/tmp/test/' } Playbook.yml ---