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 Aug 6, 2024
1 parent 666c0a2 commit c94a38e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tasks/beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion tasks/install-bin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
state: directory
recurse: true
path: "{{ rclone_fact_path | dirname }}"
register: custom_facts_dir

- name: Create facts file from template
ansible.builtin.template:
src: 'etc/ansible/facts.d/rclone.fact.j2'
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:
Expand Down
3 changes: 2 additions & 1 deletion tasks/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c94a38e

Please sign in to comment.