Add vars role so we can share datas
This commit is contained in:
19
playbooks/rear_vars.yml
Normal file
19
playbooks/rear_vars.yml
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
- name: Expose ReaR variables
|
||||
hosts: all
|
||||
become: true
|
||||
gather_facts: true
|
||||
strategy: free
|
||||
|
||||
tasks:
|
||||
- name: Include rear_vars
|
||||
ansible.builtin.import_role:
|
||||
name: ../roles/rear_vars
|
||||
|
||||
- name: Debug rear_vars_nfs_share
|
||||
ansible.builtin.debug:
|
||||
msg: "{{ rear_vars_nfs_share['standalone']['share'] }} -> {{ rear_vars_nfs_share['standalone']['fsid'] }}"
|
||||
|
||||
- name: Debug rear_vars_grub_label
|
||||
ansible.builtin.debug:
|
||||
var: rear_vars_grub_label
|
Reference in New Issue
Block a user