From 72a3c7c62e37772b7680a02e5253f835c6420fb7 Mon Sep 17 00:00:00 2001
From: Pawel Wieczorek
Date: Fri, 23 Apr 2021 12:10:38 +0200
Subject: Flatten Ansible role structure
Given current constraints of CI Lab application of Ansible playbooks has
to be divided into several stages (changing Ansible controller between
them). This is why role structure can be flattened for increased
readability.
Issue-ID: INT-1601
Change-Id: I71f95649617e160f7887f03c6a96161fb8873c66
Signed-off-by: Pawel Wieczorek
---
.../create_devstack_keypair/tasks/main.yml | 25 ----------------------
1 file changed, 25 deletions(-)
delete mode 100644 deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_keypair/tasks/main.yml
(limited to 'deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_keypair/tasks')
diff --git a/deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_keypair/tasks/main.yml b/deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_keypair/tasks/main.yml
deleted file mode 100644
index a330875d8..000000000
--- a/deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_keypair/tasks/main.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-- name: Create keypair
- os_keypair:
- state: present
- name: "{{ keypair.name }}"
- register: keypair
-
-- name: Create local public key
- local_action:
- module: copy
- content: "{{ keypair.key.public_key }}"
- dest: "~/.ssh/{{ keypair.key.name }}.pub"
- mode: 0600
-
-- name: Check if local private key exists
- stat:
- path: "~/.ssh/{{ keypair.key.name }}"
- register: local_private_key
-
-- name: Create local private key
- local_action:
- module: copy
- content: "{{ keypair.key.private_key }}"
- dest: "~/.ssh/{{ keypair.key.name }}"
- mode: 0600
- when: local_private_key.stat.exists == False
--
cgit 1.2.3-korg