34 lines
988 B
YAML
34 lines
988 B
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'
|
|
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
|