generated from linux-system-roles/template
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: expose ha_cluster_info module via role variables
- Loading branch information
1 parent
5cf96e5
commit 2078300
Showing
13 changed files
with
277 additions
and
86 deletions.
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 |
---|---|---|
|
@@ -75,3 +75,5 @@ ha_cluster_qnetd: | |
present: false | ||
regenerate_keys: false | ||
start_on_boot: true | ||
|
||
ha_cluster_get_info: false |
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,23 @@ | ||
# SPDX-License-Identifier: MIT | ||
--- | ||
- name: Example ha_cluster role invocation - export cluster configuration | ||
hosts: node1 | ||
vars: | ||
ha_cluster_cluster_present: null | ||
ha_cluster_qnetd: null | ||
ha_cluster_get_info: true | ||
|
||
roles: | ||
- linux-system-roles.ha_cluster | ||
|
||
tasks: | ||
- name: Print ha_cluster_info_result variable | ||
debug: | ||
var: ha_cluster_facts | ||
|
||
- name: Save current cluster configuration to a file | ||
delegate_to: localhost | ||
copy: | ||
content: "{{ ha_cluster_facts | to_nice_yaml(sort_keys=false) }}" | ||
dest: /path/to/file | ||
mode: "0640" |
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
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
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
Oops, something went wrong.