Re: [ansible-project] Re: Switch to root user using dzdo

2020-02-10 Thread Vishal Bobade
I would assume that you could run with -vvv and it will show you the stdout/stderr that indicates the failure in execution. On Tue, 11 Feb, 2020, 12:55 PM Vishal Bobade, wrote: > Hi, > > Seems related to the particular module you are trying to use here. > > Could you try performing this

Re: [ansible-project] Re: Switch to root user using dzdo

2020-02-10 Thread Vishal Bobade
Hi, Seems related to the particular module you are trying to use here. Could you try performing this manually by ansible i.e. not by using playbook with debug mode enabled and see what error u see. On Tue, 11 Feb, 2020, 12:16 AM Poemy, wrote: > As requested I commented out the

[ansible-project] Re: Switch to root user using dzdo

2020-02-10 Thread Poemy
As requested I commented out the *become_flags*, which gives me the following task: - name: Install needed packages for Docker yum: name: yum-utils,device-mapper-persistent-data,lvm2 state: latest become: yes become_method: dzdo And this gives as result the same error fatal:

Re: [ansible-project] Re: Switch to root user using dzdo

2020-02-10 Thread Vishal Bobade
Hi, Does it requires become_flags? Could you try commenting out that one. On Mon, 10 Feb, 2020, 10:10 PM Poemy, wrote: > I followed your suggestions, thanks for that. > > I have now following task: > - name: Install needed packages for Docker > yum: > name:

[ansible-project] Re: Switch to root user using dzdo

2020-02-10 Thread Poemy
I followed your suggestions, thanks for that. I have now following task: - name: Install needed packages for Docker yum: name: yum-utils,device-mapper-persistent-data,lvm2 state: latest become: yes become_method: dzdo become_flags: 'su -' When I run my playbook, it fails with

Re: [ansible-project] Re: Switch to root user using dzdo

2020-02-07 Thread Work-Hard
oh yea? how's that? Please do explain! On Friday, February 7, 2020 at 12:48:39 PM UTC-8, Dick Visser wrote: > > On Fri, 7 Feb 2020 at 21:17, Work-Hard > > wrote: > > > > as a workaround, you can change the file permission on linux to act as > root for your target area. > > That sounds like

Re: [ansible-project] Re: Switch to root user using dzdo

2020-02-07 Thread Dick Visser
On Fri, 7 Feb 2020 at 21:17, Work-Hard wrote: > > as a workaround, you can change the file permission on linux to act as root > for your target area. That sounds like throwing all security out of the window. Please refrain from giving this kind of useless advice... -- You received this

[ansible-project] Re: Switch to root user using dzdo

2020-02-07 Thread Work-Hard
as a workaround, you can change the file permission on linux to act as root for your target area. On Friday, February 7, 2020 at 2:45:02 AM UTC-8, Poemy wrote: > > I have an ansible playblook running some tasks for my user, which I log in > through ssh. > > The user has root privileges by