diff --git a/playbooks/planka.yml b/playbooks/planka.yml index 33d6e64..ba564e0 100644 --- a/playbooks/planka.yml +++ b/playbooks/planka.yml @@ -78,11 +78,13 @@ ansible.builtin.slurp: src: "{{ planka_stack_dir }}/.secrets" register: _secrets_file + when: not ansible_check_mode - name: Parse secret values ansible.builtin.set_fact: planka_secret_key: "{{ (_secrets_file.content | b64decode).split('\n') | select('match', '^SECRET_KEY=') | first | regex_replace('^SECRET_KEY=', '') }}" planka_access_token: "{{ (_secrets_file.content | b64decode).split('\n') | select('match', '^INTERNAL_ACCESS_TOKEN=') | first | regex_replace('^INTERNAL_ACCESS_TOKEN=', '') }}" + when: not ansible_check_mode - name: Deploy compose.yaml ansible.builtin.template: