mirror of
https://github.com/trailofbits/algo.git
synced 2025-09-03 10:33:13 +02:00
Two space tabs are hard to see.
This commit is contained in:
parent
e2d4399cef
commit
4ce06d43e1
1 changed files with 22 additions and 22 deletions
|
@ -103,31 +103,31 @@
|
||||||
- "{{ do_droplets.json.droplets }}"
|
- "{{ do_droplets.json.droplets }}"
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: "Delete the new Algo SSH key"
|
- name: "Delete the new Algo SSH key"
|
||||||
digital_ocean:
|
digital_ocean:
|
||||||
state: absent
|
state: absent
|
||||||
command: ssh
|
command: ssh
|
||||||
api_token: "{{ do_token }}"
|
api_token: "{{ do_token }}"
|
||||||
name: "{{ SSH_keys.comment }}"
|
name: "{{ SSH_keys.comment }}"
|
||||||
register: ssh_keys
|
register: ssh_keys
|
||||||
until: ssh_keys.changed != true
|
until: ssh_keys.changed != true
|
||||||
retries: 10
|
retries: 10
|
||||||
delay: 1
|
delay: 1
|
||||||
|
|
||||||
rescue:
|
rescue:
|
||||||
- name: Collect the fail error
|
- name: Collect the fail error
|
||||||
digital_ocean:
|
digital_ocean:
|
||||||
state: absent
|
state: absent
|
||||||
command: ssh
|
command: ssh
|
||||||
api_token: "{{ do_token }}"
|
api_token: "{{ do_token }}"
|
||||||
name: "{{ SSH_keys.comment }}"
|
name: "{{ SSH_keys.comment }}"
|
||||||
register: ssh_keys
|
register: ssh_keys
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
- debug: var=ssh_keys
|
- debug: var=ssh_keys
|
||||||
|
|
||||||
- fail:
|
- fail:
|
||||||
msg: "Please, ensure that your API token is not read-only."
|
msg: "Please, ensure that your API token is not read-only."
|
||||||
rescue:
|
rescue:
|
||||||
- debug: var=fail_hint
|
- debug: var=fail_hint
|
||||||
tags: always
|
tags: always
|
||||||
|
|
Loading…
Add table
Reference in a new issue