Explorar el Código

use short shell and cmd module names for compat

Grega Bremec hace 2 años
padre
commit
a779ccbb10
Se han modificado 1 ficheros con 6 adiciones y 4 borrados
  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