Thanks Vladimir
I didn't heard about tasks_from.
I'll test it too
Le mercredi 24 février 2021 à 18:29:45 UTC+1, vbo...@gmail.com a écrit :
> On Wed, 24 Feb 2021 09:05:27 -0800 (PST)
> Mouton Noir wrote:
>
> > Every task in the main.yml from "myrole" are condit
something like :
- name: test
include_role:
name: myrole
vars:
myowntags: "fst-openshot"
As this role is only dedicated to pick up some tasks when needed (not
applied to any group as itself), it makes it for me.
Le mercredi 24 février 2021 à 17:39:12 UTC+1, Mouton Noir
thing else ?
Regards
Le mercredi 24 février 2021 à 17:24:04 UTC+1, Matt Martz a écrit :
> There is no capability to limit tags from within a playbook. Tags can
> only be limited from the CLI via -t/--tags
>
> On Wed, Feb 24, 2021 at 10:15 AM Mouton Noir wrote:
>
>> Hi,
>&
Hi,
I'd like to use tags to select tasks I launch.
I found documentations about how to limit playbook, role... execution to
the tagged tasks l choose from adhoc command (-t option).
But I need to do the same from another playbook... and I can't find
anything about that
ex :
extract from the
t; Playbooks contain tasks. Playbook can import/include tasks files.
> To run a playbook you do need the playbook items such as hosts, tasks, etc.
>
>
> On Fri, 9 Oct 2020 at 11:21, Mouton Noir wrote:
> >
> > Hi,
> >
> > Newbie to Ansible, but I already made a lot o
Hi,
Newbie to Ansible, but I already made a lot of things with it.
One thing, though, I can't do is re-use a task file for adhoc commands or
re-use a playbook in another playbook :
For example, I use a task file (R_packages.yml) in a role, that starts like
this :
- name: Recuperation de la