Skip to content

Commit

Permalink
Fix check mode
Browse files Browse the repository at this point in the history
  • Loading branch information
x4e-jonas committed Jul 31, 2024
1 parent 4add29f commit 9e1a90e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions tasks/beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
mode: 0744
list_files: true
creates: "{{ rclone_setup_tmp_dir }}/rclone-v{{ rclone_version }}-linux-{{ rclone_arch }}"
check_mode: false
1 change: 1 addition & 0 deletions tasks/install-bin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions tasks/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
remote_src: true
mode: 0744
creates: "{{ rclone_setup_tmp_dir }}/rclone-v{{ rclone_version }}-linux-{{ rclone_arch }}"
check_mode: false

0 comments on commit 9e1a90e

Please sign in to comment.