diff --git a/tasks/beta.yml b/tasks/beta.yml index 25b530f..6476b1c 100644 --- a/tasks/beta.yml +++ b/tasks/beta.yml @@ -7,4 +7,5 @@ mode: 0744 list_files: true creates: "{{ rclone_setup_tmp_dir }}/rclone-v{{ rclone_version }}-linux-{{ rclone_arch }}" - changed_when: False + changed_when: false + check_mode: false diff --git a/tasks/install-bin.yml b/tasks/install-bin.yml index 2ee3da9..3d36854 100644 --- a/tasks/install-bin.yml +++ b/tasks/install-bin.yml @@ -27,7 +27,8 @@ path: "{{ rclone_setup_tmp_dir }}" state: directory mode: '0775' - changed_when: False + changed_when: false + check_mode: false - name: Do beta install ansible.builtin.include_tasks: beta.yml diff --git a/tasks/main.yml b/tasks/main.yml index f65a4be..5900bb8 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -15,6 +15,7 @@ state: directory recurse: true path: "{{ rclone_fact_path | dirname }}" + register: custom_facts_dir - name: Create facts file from template ansible.builtin.template: @@ -22,6 +23,7 @@ dest: '{{ rclone_fact_path }}' mode: '0755' notify: Update facts + when: custom_facts_dir.state is defined - name: Re-read facts after adding custom fact ansible.builtin.setup: diff --git a/tasks/stable.yml b/tasks/stable.yml index 353652c..38348c3 100644 --- a/tasks/stable.yml +++ b/tasks/stable.yml @@ -6,4 +6,5 @@ remote_src: true mode: 0744 creates: "{{ rclone_setup_tmp_dir }}/rclone-v{{ rclone_version }}-linux-{{ rclone_arch }}" - changed_when: False + changed_when: false + check_mode: false