updated tasks so they are only run once

This commit is contained in:
Matthew Stobbs
2025-03-03 12:04:09 -07:00
parent a2718521a5
commit 2ce49c9b85
117 changed files with 2129 additions and 991 deletions

View File

@@ -1,24 +1,36 @@
# vim: set filetype=yaml.ansible :
---
- name: Append to pkg_Flatpak
- name: Add nextcloud_client
when:
- ansible_system == 'Linux'
- nextcloud.method == 'flatpak'
notify:
- Depend flatpak
changed_when: true
ansible.builtin.set_fact:
pkg_flatpak: "{{ pkg_flatpak + [nextcloud] }}"
- nextcloud_client_configured is undefined
block:
- name: Load nextcloud-client config
ansible.builtin.include_tasks:
file: config/nextcloud.yml
- name: Append to pkg_sys
when:
- ansible_system == 'Linux'
- nextcloud.method == 'sys'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['nextcloud'] }}"
- name: Append to pkg_Flatpak
when:
- ansible_system == 'Linux'
- nextcloud.method == 'flatpak'
notify:
- Depend flatpak
changed_when: true
ansible.builtin.set_fact:
pkg_flatpak: "{{ pkg_flatpak + [nextcloud] }}"
- name: Append to pkg_cask
when:
- ansible_os_family == 'Darwin'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['nextcloud'] }}"
- name: Append to pkg_sys
when:
- ansible_system == 'Linux'
- nextcloud.method == 'sys'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['nextcloud'] }}"
- name: Append to pkg_cask
when:
- ansible_os_family == 'Darwin'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + ['nextcloud'] }}"
- name: Set nextcloud_client_configured
ansible.builtin.set_fact:
nextcloud_client_configured: true