瀏覽代碼

use short shell and cmd module names for compat

Grega Bremec 2 年之前
父節點
當前提交
a779ccbb10
共有 1 個文件被更改,包括 6 次插入4 次删除
  1. 6 4
      roles/fix-policies/tasks/main.yml

+ 6 - 4
roles/fix-policies/tasks/main.yml

@@ -61,15 +61,17 @@
     - policy_backup.stat.exists
   register: symlink_policies
 
+# Version horrors. FQMN will choke here. Must use short name.
 - name: Dump the policies
-  ansible.builtin.shell: ./scripts/dump-policies.sh > policyexport
-  args:
+  shell:
+    cmd: "./scripts/dump-policies.sh > policyexport"
     chdir: "{{ ansible_facts['user_dir'] }}"
     creates: "{{ ansible_facts['user_dir'] }}/policyexport"
 
+# Version horrors. FQMN will choke here. Must use short name.
 - name: Fix the policies
-  ansible.builtin.command: ./scripts/fix-policies.sh
-  args:
+  command:
+    cmd: ./scripts/fix-policies.sh
     chdir: "{{ ansible_facts['user_dir'] }}"
 
 - name: Clean up token symlink