Re: [ansible-project] AnsibleUndefinedVariable: 'dict object' has no attribute 'xvdb'

2023-05-17 Thread Sac Isilia
Hi Team, I have changed to standard jinja2 template , even then the error is same. It fails to find xvdb but it finds xvda2 . The syntax to extract UUID is same and both values are present in the ansible localhost -m setup command output . This playbook is running on localhost only. ``` UUID={

Re: [ansible-project] AnsibleUndefinedVariable: 'dict object' has no attribute 'xvdb'

2023-05-17 Thread Sac Isilia
Hi Team, The standard way to access is - ansible_facts['device_links']['uuids']['xvdb'][0] . It works on existing rhel 7 machine but it fails there. Also if the syntax is wrong it should have failed at xvda2 line , the very first line of jinja2 template. WHy it failed at second line ? That's s

Re: [ansible-project] AnsibleUndefinedVariable: 'dict object' has no attribute 'xvdb'

2023-05-17 Thread Dick Visser
On Thu, 18 May 2023 at 03:14, Sac Isilia wrote: > Hi Team, > > Below is the jinja template that I wrote that works fine on existing RHEL > 7 machine . > > ``` > UUID={{ > hostvars['localhost']['ansible_facts']['device_links']['uuids']['xvda2'][0] > }}/ {{ ansible_facts['mounts'][0].fstype }}

[ansible-project] AnsibleUndefinedVariable: 'dict object' has no attribute 'xvdb'

2023-05-17 Thread Sac Isilia
Hi Team, Below is the jinja template that I wrote that works fine on existing RHEL 7 machine . ``` UUID={{ hostvars['localhost']['ansible_facts']['device_links']['uuids']['xvda2'][0] }}/ {{ ansible_facts['mounts'][0].fstype }} defaults 0 0 UUID_home={{ hostvars['localhost']['ansible_fac

Re: [ansible-project] Formatting in debug

2023-05-17 Thread Dick Visser
So how is the keystone rc file being populated? Are you perhaps trying to manage a host with ansible, that is already managed in some other way...? On Wed, 17 May 2023 at 14:43, Veera wrote: > > The setfact task has the contents of a keystone rc file . > However I got the result by writing it

Re: [ansible-project] Formatting in debug

2023-05-17 Thread Veera
The setfact task has the contents of a keystone rc file . However I got the result by writing it into a file , replace the string, read the required lines and then deleted the file .. On Monday, May 15, 2023 at 3:32:21 PM UTC+5:30 Dick Visser wrote: > On Mon, 15 May 2023 at 10:25, Veera wr

Re: [ansible-project] Ansible-Winrm Authentation method

2023-05-17 Thread 'Rowe, Walter P. (Fed)' via Ansible Project
If you are unfamiliar with Windows authentication you may want to speak with a Windows admin at your work. WinRM requires a number of "connection settings" that differ from the easier SSH we use on Linux. You have to determine whether you will use NTLM or Kerberos, what port to use for the conne

Re: [ansible-project] Deploying a application using WAR file on Websphere

2023-05-17 Thread Supriyo Sarkar
Hi, Do you have any solution till now? I am also looking for answers for the same. On Wednesday, 2 September 2020 at 17:36:52 UTC+5:30 Rachna Dodia wrote: > Thanks for the response. > > @Abhijeet , the example which you have shared have already available > modules for JBOSS deployment. > > Whe

Re: [ansible-project] Ansible-Winrm Authentation method

2023-05-17 Thread malek sakir
Yes On Wed, May 17, 2023, 12:37 PM Kosala Atapattu wrote: > Did you try the Ansible documentation? > > *Kosala* > > > > > On Wed, May 17, 2023 at 6:34 PM malek sakir <2141.maleksa...@gmail.com> > wrote: > >> Hello All, >> Greeting of the day, >> >> I am recently joining one company as junior De

Re: [ansible-project] Ansible-Winrm Authentation method

2023-05-17 Thread Kosala Atapattu
Did you try the Ansible documentation? *Kosala* On Wed, May 17, 2023 at 6:34 PM malek sakir <2141.maleksa...@gmail.com> wrote: > Hello All, > Greeting of the day, > > I am recently joining one company as junior DevOps engineer and > my company director give me task of ansible server and multi