Browse Source

Fix syntax - add quotes.

pull/150/head
Martin Horak 6 years ago
parent
commit
ceb6686d71
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      linux/system/repo.sls

+ 3
- 3
linux/system/repo.sls View File



linux_repo_{{ name }}_key: linux_repo_{{ name }}_key:
cmd.wait: cmd.wait:
- name: echo -e '{{ repo.key|replace('\n', '\\n') }}' | apt-key add -
- name: "echo -e '{{ repo.key|replace('\n', '\\n') }}' | apt-key add -"
- watch: - watch:
- file: default_repo_list - file: default_repo_list




linux_repo_{{ name }}_key: linux_repo_{{ name }}_key:
cmd.run: cmd.run:
- name: echo -e '{{ repo.key|replace('\n', '\\n') }}' | apt-key add -
- unless: apt-key finger --with-colons | grep -qF $(echo -e '{{ repo.key|replace('\n', '\\n') }}' | gpg --with-fingerprint --with-colons | grep -E '^fpr')
- name: "echo -e '{{ repo.key|replace('\n', '\\n') }}' | apt-key add -"
- unless: "apt-key finger --with-colons | grep -qF $(echo -e '{{ repo.key|replace('\n', '\\n') }}' | gpg --with-fingerprint --with-colons | grep -E '^fpr')"
- require_in: - require_in:
- pkgrepo: linux_repo_{{ name }} - pkgrepo: linux_repo_{{ name }}



Loading…
Cancel
Save