Re: [ansible-project] How to import/load env/ini file that is located in file on the Remote/Target server?

2019-01-14 Thread Chaz_E
I like the idea of this suggestion. Is local-facts-facts-d usable as Non-Root? Can facts be loaded from the user's $HOME/.ansible/ , like $HOME/.ansible/facts.d or something like that? I see for

[ansible-project] foo.changed vs foo|changed

2019-01-14 Thread Jason Gilfoil
It's unfortunately exceedingly difficult to search for "|" in most search engines, so finding info about this was not fruitful. My question is, is there a difference between foo.changed and foo|changed, especially used in a "when:" parameter? If there's no difference, what's the preferred

Re: [ansible-project] S3 error: Requests specifying Server Side Encryption with AWS KMS managed keys require AWS Signature Version 4

2019-01-14 Thread Kishore Ponniah
Thanks, Karl. I have moved forward by creating an un-encrypted bucket and mark this case as resolved. On Saturday, January 12, 2019 at 10:17:53 PM UTC, Karl Auer wrote: > > I haven't done this myself, so everything I say may be wrong. The > following is just from reading some doco and general

[ansible-project] Ansible s3_sync to upload multiple files

2019-01-14 Thread Kishore Ponniah
Hi All, I am trying to upload multiple yaml cloudformation templates to a s3 bucket using s3_sync. I have created a task in the playbook, looks like the tasks completed successfully but the file is not uploaded. Can someone please advise whether s3_sync is the proper method? If yes, can

Re: [ansible-project] foo.changed vs foo|changed

2019-01-14 Thread Matt Martz
There is a difference, in fact the preferred syntax is actually `when: foo is changed` There is no guarantee that the attribute will exist on a returned object. In addition to handling a non existent key/attribute, the changed test also has some more complex logic, where it will look into a

Re: [ansible-project] foo.changed vs foo|changed

2019-01-14 Thread Jason Gilfoil
Thanks for the full and complete answer! On Monday, January 14, 2019 at 11:54:14 AM UTC-5, Matt Martz wrote: > > There is a difference, in fact the preferred syntax is actually `when: foo > is changed` > > There is no guarantee that the attribute will exist on a returned object. > In addition

Re: [ansible-project] How to import/load env/ini file that is located in file on the Remote/Target server?

2019-01-14 Thread Hugo Gonzalez
Hi Chaz, On 1/14/19 11:02 AM, Chaz_E wrote: I like the idea of this suggestion. Is local-facts-facts-d  usable as Non-Root? They come up as part of the dictionary returned by the setup module

[ansible-project] Trouble integrating custom module_utils module

2019-01-14 Thread Andrei Pashkin
Hello! I tried to write a custom module_utils module, I set up everything according to the docs, but for some reason I get an error: > Skipping plugin (...) as it seems to be invalid: No module named ... I've isolated the problem in a small project:

Re: [ansible-project] Trouble integrating custom module_utils module

2019-01-14 Thread Matt Martz
We do not currently support importing custom module_utils from anything other than a module. As such, no other custom plugin types can import from a custom module_utils. See https://github.com/ansible/ansible/issues/28770 On Mon, Jan 14, 2019 at 4:00 PM Andrei Pashkin wrote: > Hello! > > I

[ansible-project] Beginner, can't complete this step

2019-01-14 Thread boncalo mihai
Hi Sorry , this must be to easy for you but I can't figure it out. I was following some ansible video tutorials and I can't go further because of some errors ansible all -m user -a name=linda ansible3 | FAILED! => { "changed": false, "msg": "useradd: Permission denied.\nuseradd: cannot

Re: [ansible-project] Beginner, can't complete this step

2019-01-14 Thread James Cassell
On Mon, Jan 14, 2019, at 5:44 PM, boncalo mihai wrote: > Hi > Sorry , this must be to easy for you but I can't figure it out. I was > following some ansible video tutorials and I can't go further because > of some errors > > ansible all -m user -a name=linda > ansible3 | FAILED! => { >

Re: [ansible-project] Beginner, can't complete this step

2019-01-14 Thread boncalo mihai
Work like a charm! Thank you! On Tue, Jan 15, 2019 at 12:51 AM James Cassell wrote: > > > > On Mon, Jan 14, 2019, at 5:44 PM, boncalo mihai wrote: > > Hi > > Sorry , this must be to easy for you but I can't figure it out. I was > > following some ansible video tutorials and I can't go further

Re: [ansible-project] Trouble integrating custom module_utils module

2019-01-14 Thread Andrei Pashkin
That makes it clear, thanks a lot! On Tuesday, January 15, 2019 at 1:24:38 AM UTC+3, Matt Martz wrote: > > We do not currently support importing custom module_utils from anything > other than a module. As such, no other custom plugin types can import from > a custom module_utils. > > See

[ansible-project] Re: Issuing creating domain users with module win_dsc and resource xADuser parsing pscredentials

2019-01-14 Thread java_cat33
Thanks, Jordan - I tried your suggestion for the username and password parameter Password_username: "{{ item.user }}" Password_password: "{{ testuser_pwd }}" # This is stored in secrets.yml - encrypted via Vault New error is: "module_stderr": "Exception calling \"Add\" with \"2\"

[ansible-project] Re: ansible git uri

2019-01-14 Thread JS
Hello Just wanted to let you know this has now been solved. Did not realise --data could be passed in as the body. E.g from SO: curl -k -X POST https://mylink/action -d username=admin - uri: url: https://your.form.based.auth.example.com/index.php method: POST body:

Re: [ansible-project] Capture the stdout result in a variable, using regex and pass it to the next task

2019-01-14 Thread Saranya Nagaraj
Thankyou Kai Stian , that worked ! On Jan 10, 2019 11:31 PM, "Kai Stian Olstad" < ansible-project+l...@olstad.com> wrote: On Thursday, 10 January 2019 18:48:19 CET Saranya N wrote: > One task in my playbook produces output sample of different types like below > > > stdout_lines > > ex: 1 > > [ >