aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/noheat/infra-openstack/ansible/roles/openstack/destroy_devstack_keypair/tasks/main.yml
blob: b106ee0cdbe062c8cd6c94b5d2e20ab3fb107f0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
- name: Destroy keypair
  os_keypair:
    state: absent
    name: "{{ keypair.name }}"

- name: Destroy local keypair
  file:
    state: absent
    path: "{{ item }}"
  with_items:
    - "~/.ssh/{{ keypair.name }}.pub"
    - "~/.ssh/{{ keypair.name }}"