Skip to content

Commit

Permalink
chore: Use old create bastion playbook
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 23, 2023
1 parent fe7861d commit b54eb44
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
13 changes: 13 additions & 0 deletions playbooks/41_create_bastion.yaml
Original file line number Diff line number Diff line change
@@ -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 }
11 changes: 4 additions & 7 deletions playbooks/4_create_bastion.yaml
Original file line number Diff line number Diff line change
@@ -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 }

0 comments on commit b54eb44

Please sign in to comment.