Files
ansible_role_package/tasks/pkgs/nextcloud.yml
Matthew Stobbs aff4fddfb4 fix broken packages
- standardize naming of each pkg append
- move _configured vars to end of block
2025-03-09 21:48:11 -06:00

37 lines
1.0 KiB
YAML

# vim: set filetype=yaml.ansible :
---
- name: Add nextcloud_client
when:
- nextcloud_client_configured is undefined
block:
- name: Load nextcloud-client config
ansible.builtin.include_tasks:
file: config/nextcloud.yml
- name: Append nextcloud-client 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 nextcloud-client to pkg_sys
when:
- ansible_system == 'Linux'
- nextcloud.method == 'sys'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['nextcloud'] }}"
- name: Append nextcloud-client 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