updated tasks so they are only run once
This commit is contained in:
@@ -1,16 +1,24 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_flatpak
|
||||
- name: Add heroic
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend flatpak
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + ['com.heroicgameslauncher.hgl'] }}"
|
||||
- heroic_configured is undefined
|
||||
block:
|
||||
- name: Append to pkg_flatpak
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend flatpak
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + ['com.heroicgameslauncher.hgl'] }}"
|
||||
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- ansible_os_family == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['heroic'] }}"
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- ansible_os_family == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['heroic'] }}"
|
||||
|
||||
- name: Set heroic_configured
|
||||
ansible.builtin.set_fact:
|
||||
heroic_configured: true
|
||||
|
||||
Reference in New Issue
Block a user