aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/noheat/infra-openstack/ansible/roles/destroy_keypair/tasks/main.yml
blob: 6025b82b3ff45ebae4957ed369cb5cb526e3228b (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 }}"
  loop:
    - "~/.ssh/{{ keypair.name }}.pub"
    - "~/.ssh/{{ keypair.name }}"