--- - name: List test hosts: localhost connection: local gather_facts: false vars: bigboot_systemd_disabled_services: - docker.service - qemu.service - bob.service - helo.socket # List of services incompatible with calculations # to obtain required disk information: # # (These services will ALWAYS be disabled) bigboot_incompatible_services: - docker.service - named-chroot.service # List of services which will be excluded from being # disabled during Bigboot execution: bigboot_protected_services: - sshd.service - user@0.service - network - rhnsd.service - rhnsd - boksm.service # - # Filename of disabled services log: bigboot_disabled_services_log: /var/ipe/ipu/el7to8/bigboot_disabled_services.log tasks: - name: Bigboot_systemd_disabled_services ansible.builtin.debug: var: bigboot_systemd_disabled_services - name: Bigboot_incompatible_services ansible.builtin.debug: var: bigboot_incompatible_services - name: Bigboot_protected_services ansible.builtin.debug: var: bigboot_protected_services - name: Services to disable ansible.builtin.set_fact: bigboot_services_to_disable: "{{ bigboot_incompatible_services + bigboot_systemd_disabled_services }}" - name: Bigboot_services_to_disable ansible.builtin.debug: var: bigboot_services_to_disable - name: Can I do this? ansible.builtin.debug: msg: "{{ item }}" loop: "{{ bigboot_incompatible_services + bigboot_systemd_disabled_services }}"