From b54eb4465bab3ac79af64bcd0f11716ea2b94719 Mon Sep 17 00:00:00 2001 From: Klaus Smolin Date: Mon, 23 Oct 2023 15:58:24 +0200 Subject: [PATCH] chore: Use old create bastion playbook Signed-off-by: Klaus Smolin --- playbooks/41_create_bastion.yaml | 13 +++++++++++++ playbooks/4_create_bastion.yaml | 11 ++++------- 2 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 playbooks/41_create_bastion.yaml diff --git a/playbooks/41_create_bastion.yaml b/playbooks/41_create_bastion.yaml new file mode 100644 index 00000000..6e91332c --- /dev/null +++ b/playbooks/41_create_bastion.yaml @@ -0,0 +1,13 @@ +--- + +# Assume we have an existing ftp/http server already +- name: 4 create bastion + # Bastion will be installed on kvm host which is defined in env.bastion.kvm_hostname + hosts: kvm_host + become: false + vars_files: + - "{{ inventory_dir }}/group_vars/all.yaml" + - "{{ inventory_dir }}/host_vars/{{ env.bastion.kvm_hostname }}.yaml" + roles: + - { role: common, when: env.bastion.create == True and inventory_hostname == env.bastion.kvm_hostname } + - { role: create_bastion, when: env.bastion.create == True and inventory_hostname == env.bastion.kvm_hostname } diff --git a/playbooks/4_create_bastion.yaml b/playbooks/4_create_bastion.yaml index 6e91332c..64c31d1b 100644 --- a/playbooks/4_create_bastion.yaml +++ b/playbooks/4_create_bastion.yaml @@ -1,13 +1,10 @@ ---- - # Assume we have an existing ftp/http server already - name: 4 create bastion - # Bastion will be installed on kvm host which is defined in env.bastion.kvm_hostname - hosts: kvm_host + hosts: kvm_host[0] become: false vars_files: - "{{ inventory_dir }}/group_vars/all.yaml" - - "{{ inventory_dir }}/host_vars/{{ env.bastion.kvm_hostname }}.yaml" + - "{{ inventory_dir }}/host_vars/{{ env.z.lpar1.hostname }}.yaml" roles: - - { role: common, when: env.bastion.create == True and inventory_hostname == env.bastion.kvm_hostname } - - { role: create_bastion, when: env.bastion.create == True and inventory_hostname == env.bastion.kvm_hostname } + - common + - { role: create_bastion, when: env.bastion.create == True }