|
|
@ -41,14 +41,9 @@
|
|
|
|
register: wg_subcommands
|
|
|
|
register: wg_subcommands
|
|
|
|
changed_when: false
|
|
|
|
changed_when: false
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set default value for wg_syncconf variable (assume wg syncconf subcommand not available)
|
|
|
|
|
|
|
|
set_fact:
|
|
|
|
|
|
|
|
wg_syncconf: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Check if wg syncconf subcommand is available
|
|
|
|
- name: Check if wg syncconf subcommand is available
|
|
|
|
set_fact:
|
|
|
|
set_fact:
|
|
|
|
wg_syncconf: true
|
|
|
|
wg_syncconf: "{{ 'syncconf:' in wg_subcommands.stdout }}"
|
|
|
|
when: wg_subcommands.stdout | regex_search('syncconf:')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Show syncconf subcommand status
|
|
|
|
- name: Show syncconf subcommand status
|
|
|
|
debug:
|
|
|
|
debug:
|
|
|
|