ping_check/node1.yml
2024-07-17 17:52:55 -04:00

33 lines
1018 B
YAML

---
- name: Set stats test - node1
hosts: all
become: true
gather_facts: false
vars:
bigboot_size_target: 1G
tasks:
- name: Set bigboot_size_target if needed
when: inventory_hostname == 'bigboot-test-custom-7'
ansible.builtin.set_fact:
bigboot_size_target: 2G
- name: Test a var
ansible.builtin.set_stats:
data:
__bigboot_size_target: "{{ bigboot_size_target }}"
__bigboot_adjacent_lvm: "/dev/mapper/system-root"
__bigboot_execute_bigboot: true
__bigboot_execute_shrink: "true"
# bigboot_size_target: "{{ bigboot_size_target }}"
bigboot_skip_rear_backup: "{{ bigboot_skip_rear | default('false') }}"
bigboot_size_target: "{{ bigboot_size_target | default({}) | combine({inventory_hostname: {'bigboot_size_target': bigboot_size_target}}) }}"
- name: Debug test_set_stats
ansible.builtin.debug:
msg: "Locally we use bigboot_size_target -> {{ bigboot_size_target }}"
...