Skip to content

Commit

Permalink
Fix Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
psmet-dev committed Aug 27, 2021
1 parent 8900ce5 commit 50ce9c8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,14 @@ bastille:
release: 13.0-RELEASE
ip: 10.17.89.1
templates:
- "bastillebsd-templates/nginx"
template_args:
- user=root
- password=MYSUPERSECRETPASSWORD
- template: "yaazkal/bastille-postgres"
args:
- version=12
- template: "yaazkal/bastille-matomo"
args:
- version=2
- other=yes
- user=whatever
- name: thickjail
release: 13.0-RELEASE
ip: 10.17.89.2
Expand Down
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,6 @@
when: bastille_jails is defined

- name: "Apply templates to jails"
command: bastille template {{ item.name }} {{ item.templates | map('quote') | join(' ') }} {{ ['--arg'] | product(item.template_args | default([]) | map('quote')) | map('join', ' ') | join(' ') }}
loop: "{{ bastille_jails }}"
command: bastille template {{ item.0.name|quote }} {{ item.1.template|quote }} {{ ['--arg']|product(item.1.args|default([])|map('quote'))|map('join', ' ')|join(' ') }}
loop: "{{ bastille_jails | subelements('templates', skip_missing=True) }}"
when: item.templates is defined

0 comments on commit 50ce9c8

Please sign in to comment.