]> xn--ix-yja.es Git - alex.git/commitdiff
Use zip instead of tar.
authoralex <alex@pdp7.net>
Sat, 28 Jan 2023 18:53:28 +0000 (19:53 +0100)
committeralex <alex@pdp7.net>
Sat, 28 Jan 2023 18:53:56 +0000 (19:53 +0100)
I had some permission issues, and I couldn't find an easier way to solve
them.

personal_infra/playbooks/roles/apply_puppet/tasks/main.yml

index 0b8560a8c924e76a4963c81a41460ec25b2e106c..0ee291ef6d959f2331341ced5ef5c2d13d9e8885 100644 (file)
@@ -46,7 +46,7 @@
   package:
     name:
       - puppet
-      - tar
+      - unzip
 - name: get facts
   command: facter -y
   register: facter_output
 - name: package modules
   archive:
     path: ../puppet/modules
-    dest: "{{ local_temp.path }}/puppet_modules.tar.gz"
+    dest: "{{ local_temp.path }}/puppet_modules.zip"
+    format: zip
   delegate_to: 127.0.0.1
   tags: puppet_fast
 - name: unpackage modules
   unarchive:
-    src: "{{ local_temp.path }}/puppet_modules.tar.gz"
+    src: "{{ local_temp.path }}/puppet_modules.zip"
     dest: "{{ remote_temp.path }}"
   tags: puppet_fast
 - name: preview catalog