Only this would need to be part of a larger playbook unless you want a
playbook to have multiple PLAYS.
- name: run rke installer
shell: 'rke up'
args:
chdir: "/home/rke"
become: yes
become_user: "rke"
delegate_to: localhost
register: result
- debug:
msg: "{{ result }} "
On Monday, July 25, 2022 at 8:23:26 PM UTC-4 [email protected] 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/2d71f7f0-86ba-4be8-8788-d335398d34edn%40googlegroups.com.