-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow role to work with gather_facts: false
Allow the role to work if the playbook has set `gather_facts: false`. The `gather_subset: min` includes all of the facts used by this role. Other roles may need to gather more facts. The role gathers the facts where they are needed. Other roles may need to gather facts in a different place.
- Loading branch information
Showing
3 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
- name: Ensure that the role runs with default parameters | ||
hosts: all | ||
|
||
gather_facts: false | ||
roles: | ||
- linux-system-roles.storage |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# ansible_facts required by the role | ||
__storage_required_facts: | ||
- distribution | ||
- distribution_major_version | ||
- distribution_version | ||
- os_family |