Fix DoH parameter and use copy + command instead of script module since script module does not run from current remote directory (even with chdir argument)

This commit is contained in:
Mike Wilson
2025-06-16 15:06:36 -04:00
parent 4105f50aa7
commit 6323393963
2 changed files with 8 additions and 6 deletions

View File

@@ -31,18 +31,20 @@
ansible.builtin.copy:
src: prefsCleaner.sh
dest: "{{ profile_dir.files[0].path }}"
mode: "0774"
- name: Install updater.sh
ansible.builtin.copy:
src: updater.sh
dest: "{{ profile_dir.files[0].path }}"
mode: "0774"
- name: Run Updater
ansible.builtin.script:
ansible.builtin.command:
chdir: "{{ profile_dir.files[0].path }}"
cmd: "updater.sh -s"
cmd: "./updater.sh -s"
- name: Run prefsCleaner
ansible.builtin.script:
ansible.builtin.command:
chdir: "{{ profile_dir.files[0].path }}"
cmd: "{{ profile_dir.files[0].path }}/prefsCleaner.sh -s"
cmd: "./prefsCleaner.sh -s"