Hi all,
Before going to GitHub, I'd like to confirm whether what I'm facing is the
correct, expected behavior or not.
I have two playbooks, one that clones a git repository to the local machine
and one that looks for files in the downloaded repository. What I want is
to import the playbook that clones the repo into the other one. Here's what
I mean:
git_repo.yml
*--- - hosts: localhost gather_facts: false tasks: - name:
Clone repository git:[...]*
main.yml
*---- import_playbook: git_repo.yml- hosts: tag_{{ name }}_main_server *
*tag_{{ name }}_secondary_server*
* become: true gather_facts: false*
* tasks:*
*[...]*
When I run main.yml I expect git_repo.yml to be run and clone the
repository to my local machine. Instead, when the playbook starts to run, I
get this message:
*[WARNING]: Could not match supplied host pattern, ignoring:
tag_test_secondary_server*
And the git_repo playbook is not run
*.*
Could this be a bug, or is there a more appropriate way for me to do what
I'm trying to?
Thanks in advance!
--
*Marco Godinho*
--
You received this message because you are subscribed to the Google Groups
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.