Re: [ansible-project] Deleting an element in namespace xml based on value

2021-09-20 Thread Hasini P
"}' > > > > > On Sat, 18 Sept 2021 at 13:55, Dick Visser wrote: > > > > As the docs say the namespaces need to be supplied as a dict. > > > > On Thu, 16 Sep 2021 at 14:38, Hasini P > wrote: > >> > >> Hi, I am trying to delete an ele

[ansible-project] Re: Adding a nested xml element using ansible xml module fails

2021-09-16 Thread Hasini P
Like add_children, is there a solution for deletion of elements based on element value (elements with no attributes ) - name: Delete several beers with value xml: path: /foo/bar.xml xpath: /business/beers value: Old Rasputin state: absent - Actually I am

[ansible-project] Deleting an element in namespace xml based on value

2021-09-16 Thread Hasini P
Hi, I am trying to delete an element in a namespace xml based on element value ; without namespace, deletion is working fine (as posted in ansible documentation of xml module).. Can someone help, please Example 1: xml with no namespace *https://coffee.com;> Tasty Hot Coffee

Re: [ansible-project] Facing issues with ssh connection as user root

2021-04-26 Thread Hasini P
ute your playbook with sudo? If with sudo then you may need to > ssh copy key again for root account to target machine. And Can try to add > - then post the result? > > Sent from my iPhone > > On 26 Apr 2021, at 18:37, Hasini P wrote: > >  > > yes, I am able

Re: [ansible-project] Facing issues with ssh connection as user root

2021-04-26 Thread Hasini P
server -m ping? Have you done to transfer your public key to client? > > Sent from my iPhone > > On 26 Apr 2021, at 18:32, Hasini P wrote: > > Thanks, I tried different possibilities including your suggestion as > below., but it didnt work > > > --- > - name: tes

Re: [ansible-project] Facing issues with ssh connection as user root

2021-04-26 Thread Hasini P
: > I think just become_user: yes may solve your issue. > > Sent from my iPhone > > On 26 Apr 2021, at 18:26, Hasini P wrote: > >  > > > Team, Can someone sort this out please.. We are using 2.8.18 version of > ansible on our control node. > I am facing er

[ansible-project] Facing issues with ssh connection as user root

2021-04-26 Thread Hasini P
Team, Can someone sort this out please.. We are using 2.8.18 version of ansible on our control node. I am facing error when trying to perform ping-pong with ansible as become_user root (as pasted below). On the remote server, the user is having access to run sudo commands and user can become