From 9e1a90ee396e24ba828929d50d8f89a0e83bd299 Mon Sep 17 00:00:00 2001 From: x4e-jonas Date: Wed, 31 Jul 2024 14:58:46 +0200 Subject: [PATCH] Fix check mode --- tasks/beta.yml | 1 + tasks/install-bin.yml | 1 + tasks/main.yml | 2 ++ tasks/stable.yml | 1 + 4 files changed, 5 insertions(+) diff --git a/tasks/beta.yml b/tasks/beta.yml index cef18ea..d03ee36 100644 --- a/tasks/beta.yml +++ b/tasks/beta.yml @@ -7,3 +7,4 @@ mode: 0744 list_files: true creates: "{{ rclone_setup_tmp_dir }}/rclone-v{{ rclone_version }}-linux-{{ rclone_arch }}" + check_mode: false diff --git a/tasks/install-bin.yml b/tasks/install-bin.yml index 07a57b7..d555907 100644 --- a/tasks/install-bin.yml +++ b/tasks/install-bin.yml @@ -26,6 +26,7 @@ path: "{{ rclone_setup_tmp_dir }}" state: directory mode: '0775' + check_mode: false - name: Do beta install ansible.builtin.include_tasks: beta.yml diff --git a/tasks/main.yml b/tasks/main.yml index 593fda8..e6f8b78 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -16,6 +16,7 @@ state: directory recurse: true path: /etc/ansible/facts.d + register: custom_facts_dir - name: Create facts file from template become: true @@ -24,6 +25,7 @@ dest: /etc/ansible/facts.d/rclone.fact mode: '0755' notify: Update facts + when: custom_facts_dir.state is defined - name: Re-read facts after adding custom fact become: true diff --git a/tasks/stable.yml b/tasks/stable.yml index d1e224d..5f0a16b 100644 --- a/tasks/stable.yml +++ b/tasks/stable.yml @@ -6,3 +6,4 @@ remote_src: true mode: 0744 creates: "{{ rclone_setup_tmp_dir }}/rclone-v{{ rclone_version }}-linux-{{ rclone_arch }}" + check_mode: false