[ansible-project] ansible with_sequence result message hide

2020-03-12 Thread 이승준
I want to hide the result message of with_sequence - *My task playbook : * - name: Alarm check debug: msg="Alarm check" when: '"{{ item }} alarms

Re: [ansible-project] rescue block does not print message despite being invoked

2020-03-12 Thread Shifa Shaikh
Missing parentheses where? My code is very similar to a working sample here: fail: msg: >- {{ command_result.stdout is search('775') | ternary( "This REQ is already Deployed. , "Database is

Re: [ansible-project] rescue block does not print message despite being invoked

2020-03-12 Thread James Cassell
On Thu, Mar 12, 2020, at 10:12 PM, Shifa Shaikh wrote: > Hi, > > I have a playbook with a task that greps for a string in a file. If the > string is found the block should fail which is the case. However, in > the fail module it fails to print the message. > > Here is my playbook: > >

[ansible-project] rescue block does not print message despite being invoked

2020-03-12 Thread Shifa Shaikh
Hi, I have a playbook with a task that greps for a string in a file. If the string is found the block should fail which is the case. However, in the fail module it fails to print the message. Here is my playbook: Here is my playbook: --- - name: "Play 1" hosts: localhost tasks: -

Re: [ansible-project] Logging to readable format

2020-03-12 Thread RayO
I was able to resolve this finding the below thread. In my case I had to alter the config slightly to the below. This was to merge the text together no space and eliminate "_lines" - name: print result debug: var: output1.stdout_lines - name: copy output to file

Re: [ansible-project] Logging to readable format

2020-03-12 Thread RayO
Anyone have any thoughts on this? On Thursday, March 12, 2020 at 10:51:25 AM UTC-4, RayO wrote: > > Hi Stefan, > > Thanks for the reply. Unfortunately though it doesn't look like that > worked. I replaced the below line with the entry you provided but it's > still printing in a bad format > >

Re: [ansible-project] Ansible password_hash issue

2020-03-12 Thread Dick Visser
The hardcoded admin hash uses the 2a version of bcrypt. It may be that your application cannot handle the newer 2b variant of bcrypt - which ansible creates. But this sounds unlikely. Can you try to create a password with ansible using a salt (so leaving the "salt=None" out) ? Dick On Thu, 12

[ansible-project] Re: gcp_compute_* modules: trying to link using selfLink

2020-03-12 Thread Frank Gravato
Hi Lujaina, Were you able to get this working I'm currently working on a project trying to get this working exactly in the same setup as your post. On Thursday, January 2, 2020 at 9:46:16 AM UTC-5, Lujaina Abu Erban wrote: > > Thank you for the response, > But unfortunately, this also did not

Re: [ansible-project] Ansible password_hash issue

2020-03-12 Thread Bala Mutyam
Hi, I've tried the rounds but no luck,still not able to login to UI. About the salt option, it's Sonarqube application which doesn't use salt. This is the command used on Sonarqube doc - https://docs.sonarqube.org/latest/instance-administration/security/ update users set crypted_password =

Re: [ansible-project] Logging to readable format

2020-03-12 Thread RayO
Hi Stefan, Thanks for the reply. Unfortunately though it doesn't look like that worked. I replaced the below line with the entry you provided but it's still printing in a bad format copy: content="{{ output1.stdout_lines | join('\n') }}" Any other ideas? On Thursday, March 12, 2020 at

Re: [ansible-project] Logging to readable format

2020-03-12 Thread Stefan Hornburg (Racke)
On 3/12/20 2:52 PM, RayO wrote: > Hi. I have a very basic cisco IOS playbook i'm working on and when I log the > output to a file I cannot read the format. > I read a few threads that mention enabling a callback option in the > ansible.cfg but that does not seem to work. Does > anyone know how I

[ansible-project] Logging to readable format

2020-03-12 Thread RayO
Hi. I have a very basic cisco IOS playbook i'm working on and when I log the output to a file I cannot read the format. I read a few threads that mention enabling a callback option in the ansible.cfg but that does not seem to work. Does anyone know how I can accomplish logging to a readable

Re: [ansible-project] Ansible password_hash issue

2020-03-12 Thread Dick Visser
Hi Your hardcoded hash (the one "UI login only works") appears to use 10 rounds, while the hash generated by password_hash uses 12 (the default). Based on the docs at https://passlib.readthedocs.io/en/stable/lib/passlib.hash.bcrypt.html#interface you should be able to configure that as an

Re: [ansible-project] no hosts matched

2020-03-12 Thread Dick Visser
hi it's pretty obvious from the error, with exact file and line number etc: On Thu, 12 Mar 2020 at 11:15, wrote: > [WARNING]: * Failed to parse /etc/ansible/hosts with yaml plugin: Syntax > Error > > while loading YAML. did not find expected The error > appears > > to be in

Re: [ansible-project] Ansible password_hash issue

2020-03-12 Thread Bala Mutyam
Hi, I manged to run the task successfully but i'm not able to login with the password to Sonarqube UI. ansible 2.7.7 config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module

RE: [ansible-project] no hosts matched

2020-03-12 Thread sandy.hung
I change hosts, but still error connect. � [test] 192.168.1.120 � [vars] ansible_user=sandy ansible_sudo_pass='' � ansible 2.9.6 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/sandy/.ansible/plugins/modules',

Re: [ansible-project] Inventory gathering including docker version

2020-03-12 Thread Kuber User
Thank you, Felix, will explore. On Wed, Mar 11, 2020 at 6:03 AM 'Felix Fontein' via Ansible Project < ansible-project@googlegroups.com> wrote: > Hi, > > you should be able to use the docker_host_info module to find out the > dcker daemon version. Check out its host_info return value > ( >

Re: [ansible-project] ansible privilege escalation ( sudo su - )

2020-03-12 Thread Dick Visser
You manually use sudo but the in your playbook you use su? Please read again carefully https://docs.ansible.com/ansible/latest/user_guide/become.html On Thu, 12 Mar 2020 at 06:02, Suresh R wrote: > i have command sudo su - is working fine when we do ssh to the server. > BTW we were unable to