Skip to content

Commit

Permalink
feat: Choose where bastion is installed
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 4e1f959 commit b1af10f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions playbooks/4_create_bastion.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Assume we have an existing ftp/http server already
- name: 4 create bastion
# Install bastion always on 2nd LPAR definition
hosts: kvm_host[1]
# 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.z.lpar1.hostname }}.yaml"
- "{{ inventory_dir }}/host_vars/{{ env.bastion.kvm_hostname }}.yaml"
roles:
- common
- { role: create_bastion, when: env.bastion.create == True }
- { role: create_bastion, when: env.bastion.create == True and inventory_hostname == env.bastion.kvm_hostname }

0 comments on commit b1af10f

Please sign in to comment.