[ansible-project] Automate Oracle Database Shutdown and Startup with Ansible.

2020-05-16 Thread Akshay Bora
Hi Everyone, I am writing an ansible script to automate the task of oracle database shutdown and startup. I am facing a difficulty in reading the environment variables from the XML files. Sample XML File: [oracle@rac1 ContentsXML]$ more inventory.xml 12.1.0.2.0 2.1.0.6.0

Re: [ansible-project] Automate Oracle Database Shutdown and Startup with Ansible.

2020-05-16 Thread Akshay Bora
with it. On Saturday, May 16, 2020 at 2:57:04 PM UTC+5:30, Jean-Yves LENHOF wrote: > > There's no /etc/oratab on yours servers ? > > Regards, > > > Le 16/05/2020 à 08:30, Akshay Bora a écrit : > > Hi Everyone, > > I am writing an ansible script to automate the task of oracle da

[ansible-project] Re: Automate Oracle Database Shutdown and Startup with Ansible.

2020-05-16 Thread Akshay Bora
Thanks Dick Visser, I am trying that module. On Saturday, May 16, 2020 at 12:00:07 PM UTC+5:30, Akshay Bora wrote: > > Hi Everyone, > > I am writing an ansible script to automate the task of oracle database > shutdown and startup. I am facing a difficulty in reading the environme

Re: [ansible-project] Re: Automate Oracle Database Shutdown and Startup with Ansible.

2020-05-16 Thread Akshay Bora
: inventory.xml > xpath: "/INVENTORY/HOME_LIST/HOME[@NAME='OraDB12Home1']" > content: attribute > register: out > > - set_fact: > db12home: "{{ out.matches.0.HOME.LOC }}" > > > On Sat, 16 May 2020 at 11:44, Akshay Bora

Re: [ansible-project] Re: Automate Oracle Database Shutdown and Startup with Ansible.

2020-05-16 Thread Akshay Bora
th: "/INVENTORY/HOME_LIST/HOME[@NAME='OraDB12Home1']" > content: attribute > register: out > > - set_fact: > db12home: "{{ out.matches.0.HOME.LOC }}" > > > On Sat, 16 May 2020 at 11:44, Akshay Bora wrote: > > > > Thanks

[ansible-project] Re: Automate Oracle Database Shutdown and Startup with Ansible.

2020-05-16 Thread Akshay Bora
with it. On Saturday, May 16, 2020 at 12:00:07 PM UTC+5:30, Akshay Bora wrote: > > Hi Everyone, > > I am writing an ansible script to automate the task of oracle database > shutdown and startup. I am facing a difficulty in reading the environment > variables from the XML files. &

[ansible-project] Read the values from file and store in variable.

2020-05-26 Thread Akshay Bora
Hi All, I have a file named as /etc/oraInst.loc. The file contents are as below. inventory_loc=/u01/app/oraInventory inst_group=oinstall *I need to store the value of inventory_loc , that is ,/u01/app/oraInventory in any variable.* These files are at remote host and not on ansible controller

[ansible-project] Python_Interpreter_Error.

2021-03-09 Thread Akshay Bora
Hi People, I am running the ansible playbook through AWX and its getting failed with the subjected error. But the same playbook is running on other server successfully. Kindly help to resolve the issue. { "ansible_facts": {}, "msg": "The following modules failed to execute: setup\n",