Skip to content

Commit

Permalink
fix: Add kvm_host[0] as bastion host
Browse files Browse the repository at this point in the history
Signed-off-by: Klaus Smolin <[email protected]>
  • Loading branch information
smolin-de committed Oct 20, 2023
1 parent b1af10f commit 85771a0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions playbooks/4_create_bastion.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +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:
- common
- { role: create_bastion, when: env.bastion.create == True and inventory_hostname == env.bastion.kvm_hostname }
- { role: create_bastion, when: env.bastion.create == True }

0 comments on commit 85771a0

Please sign in to comment.