updated tasks so they are only run once
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user