Last active
August 29, 2015 14:05
-
-
Save yaegashi/345c96c913409e21e319 to your computer and use it in GitHub Desktop.
https://github.com/ansible/ansible/issues/8633 test case on a role with only library modules
This file contains 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
# /hosts | |
localhost ansible_connection=local |
This file contains 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
#!/usr/bin/python | |
# /roles/modules/library/module | |
from ansible.module_utils.basic import * | |
AnsibleModule({}).exit_json(**{}) |
This file contains 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
# /site.yml | |
--- | |
- hosts: all | |
gather_facts: false | |
roles: [modules] | |
tasks: [{module:}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment