Re: [ansible-project] sucessfully ran single play but not when the play is part of a task in the pb

2022-07-25 Thread Dick Visser
I don't see a question?
And what do you mean by this playbook being pet of a playbook task?
Where is that code? Do we need to guess again what that looks like?

On Tue, 26 Jul 2022 at 02:23, Tony Wong  wrote:

> I sucessully ran this play as a single play
>
> ---
> - hosts: localhost
>   name: test
>   tasks:
>   - name: run rke installer
> shell: 'rke up'
> args:
>   chdir: "/home/rke"
> become: yes
> become_user: "rke"
> delegate_to: localhost
> register: result
>   - debug:
>   msg: "{{ result }} "
>
>
> however this did not work as part of a playbook task
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/510cb366-ef13-4e1d-882e-f3db12d3ce7cn%40googlegroups.com
> 
> .
>
-- 
Sent from Gmail Mobile

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAF8BbLZB3h4U1jTGZ_tUvp2si13_cUgO%3DGjZHySvuD9inR_n3Q%40mail.gmail.com.


[ansible-project] sucessfully ran single play but not when the play is part of a task in the pb

2022-07-25 Thread Tony Wong
I sucessully ran this play as a single play

---
- hosts: localhost
  name: test
  tasks:
  - name: run rke installer 
shell: 'rke up'
args:
  chdir: "/home/rke"  
become: yes
become_user: "rke"
delegate_to: localhost
register: result
  - debug:
  msg: "{{ result }} "


however this did not work as part of a playbook task


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/510cb366-ef13-4e1d-882e-f3db12d3ce7cn%40googlegroups.com.