diff options
author | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-06 19:05:00 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-06 23:35:34 +0100 |
commit | d03cede672edcf559379ca0b12c80fd7b92cfb18 (patch) | |
tree | 8c5837ef90fe33ca0ebfcf33ab1524edd1e00673 /roles/gnupg/tasks/main.yml | |
parent | b227070796713b671fe499b7a1d3f767b5bb9b58 (diff) | |
download | Ansible-d03cede672edcf559379ca0b12c80fd7b92cfb18.tar.gz Ansible-d03cede672edcf559379ca0b12c80fd7b92cfb18.tar.zst Ansible-d03cede672edcf559379ca0b12c80fd7b92cfb18.zip |
Use check_mode for commands
Diffstat (limited to 'roles/gnupg/tasks/main.yml')
-rw-r--r-- | roles/gnupg/tasks/main.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/gnupg/tasks/main.yml b/roles/gnupg/tasks/main.yml index d1289f5..ef61fed 100644 --- a/roles/gnupg/tasks/main.yml +++ b/roles/gnupg/tasks/main.yml | |||
@@ -15,11 +15,13 @@ | |||
15 | shell: 'gpgconf --list-dirs socketdir | sed -e "s@$XDG_RUNTIME_DIR/gnupg/@@"' | 15 | shell: 'gpgconf --list-dirs socketdir | sed -e "s@$XDG_RUNTIME_DIR/gnupg/@@"' |
16 | register: gnupg_runtime_dir_cmd | 16 | register: gnupg_runtime_dir_cmd |
17 | changed_when: false | 17 | changed_when: false |
18 | check_mode: no | ||
18 | - name: check existing secret key | 19 | - name: check existing secret key |
19 | shell: "gpg --list-secret-keys | grep '{{ gpg_useremail }}'" | 20 | shell: "gpg --list-secret-keys | grep '{{ gpg_useremail }}'" |
20 | changed_when: false | 21 | changed_when: false |
21 | ignore_errors: true | 22 | ignore_errors: true |
22 | register: gpgkeys | 23 | register: gpgkeys |
24 | check_mode: no | ||
23 | - name: ask for gpg password | 25 | - name: ask for gpg password |
24 | pause: | 26 | pause: |
25 | prompt: "Chose gpg password" | 27 | prompt: "Chose gpg password" |