Created
September 13, 2013 23:35
-
-
Save gregbuehler/6557384 to your computer and use it in GitHub Desktop.
role dependency issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #./master.yml | |
| --- | |
| - hosts: all | |
| roles: | |
| - { role: monitored } | |
| #./roles/monitored/meta/main.yml | |
| --- | |
| dependencies: | |
| - { role: 'common' } | |
| #./roles/monitored/tasks/main.yml | |
| --- | |
| - name: monitored | stub test | |
| shell: echo "monitored stubb" | |
| #./roles/common/tasks/main.yml | |
| --- | |
| - name: common | stub test | |
| shell: echo "common stubb" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
# modified master.yml minimally: --- - hosts: localhost gather_facts: false connection: local roles: - { role: monitored } $ ansible-playbook master.yml PLAY [localhost] ************************************************************** TASK: [common | stub test] **************************************************** changed: [127.0.0.1] TASK: [monitored | stub test] ************************************************* changed: [127.0.0.1] PLAY RECAP ******************************************************************** 127.0.0.1 : ok=2 changed=2 unreachable=0 failed=0