Browse Source

use stat without checksums and attrs

Grega Bremec 5 days ago
parent
commit
cdb79a6af4
2 changed files with 12 additions and 0 deletions
  1. 6 0
      30-quay-pre-tasks.yml
  2. 6 0
      32-quay-deploy.yml

+ 6 - 0
30-quay-pre-tasks.yml

@@ -64,11 +64,17 @@
     - name: Check if CA key exists to save time
     - name: Check if CA key exists to save time
       ansible.builtin.stat:
       ansible.builtin.stat:
         path: "{{ ansible_facts['user_dir'] }}/ca/ca-key.pem"
         path: "{{ ansible_facts['user_dir'] }}/ca/ca-key.pem"
+        get_attributes: no
+        get_checksum: no
+        get_mime: no
       register: cakey_file
       register: cakey_file
 
 
     - name: Check if CA cert exists to save time
     - name: Check if CA cert exists to save time
       ansible.builtin.stat:
       ansible.builtin.stat:
         path: "{{ ansible_facts['user_dir'] }}/ca/ca-cert.pem"
         path: "{{ ansible_facts['user_dir'] }}/ca/ca-cert.pem"
+        get_attributes: no
+        get_checksum: no
+        get_mime: no
       register: cacert_file
       register: cacert_file
 
 
     - name: Create a new CA private key, if it does not exist yet.
     - name: Create a new CA private key, if it does not exist yet.

+ 6 - 0
32-quay-deploy.yml

@@ -7,11 +7,17 @@
     - name: Check if Quay key exists to save time
     - name: Check if Quay key exists to save time
       ansible.builtin.stat:
       ansible.builtin.stat:
         path: "{{ ansible_facts['user_dir'] }}/ca/quay-key.pem"
         path: "{{ ansible_facts['user_dir'] }}/ca/quay-key.pem"
+        get_attributes: no
+        get_checksum: no
+        get_mime: no
       register: qkey_file
       register: qkey_file
 
 
     - name: Check if Quay cert exists to save time
     - name: Check if Quay cert exists to save time
       ansible.builtin.stat:
       ansible.builtin.stat:
         path: "{{ ansible_facts['user_dir'] }}/ca/quay-cert.pem"
         path: "{{ ansible_facts['user_dir'] }}/ca/quay-cert.pem"
+        get_attributes: no
+        get_checksum: no
+        get_mime: no
       register: qcert_file
       register: qcert_file
 
 
     - name: Create a new private key for Quay, if it does not exist yet.
     - name: Create a new private key for Quay, if it does not exist yet.