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:
@@ -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"
|
||||
|
Reference in New Issue
Block a user