Skip to content
This repository has been archived by the owner on Aug 21, 2022. It is now read-only.

Commit

Permalink
fix: restructure entrypoint (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
saitho authored Nov 15, 2020
1 parent 64ff214 commit a611e2c
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions __tests__/test-tf-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
with_items: "{{ app_config.domains }}"
- block:
- name: Generate Nginx Server Block Terraform file
import_tasks: "{{ role_path }}/tasks/steps/generate-serverblock-tf.yml"
import_tasks: "{{ role_path }}/tasks/nginx_steps/generate-serverblock-tf.yml"
- name: Generate htpasswd Terraform file
import_tasks: "{{ role_path }}/tasks/steps/generate-htpasswd-tf.yml"
import_tasks: "{{ role_path }}/tasks/nginx_steps/generate-htpasswd-tf.yml"
vars:
role_path: ".."
nginx_usehttps: 1
Expand Down
2 changes: 0 additions & 2 deletions tasks/destroy.yml

This file was deleted.

2 changes: 0 additions & 2 deletions tasks/load-config.yml

This file was deleted.

2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
- include_tasks: "{{ role_path }}/tasks/{{ stackhead_action }}.yml"
- include_tasks: "{{ stackhead__roles }}/stackhead_module_api/tasks/module-main.yml"
4 changes: 2 additions & 2 deletions tasks/deploy.yml → tasks/steps/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
when: item.security is defined and item.security.authentication is defined
with_items: "{{ app_config.domains }}"

- include_tasks: "{{ role_path }}/tasks/steps/generate-htpasswd-tf.yml"
- include_tasks: "{{ role_path }}/tasks/nginx_steps/generate-htpasswd-tf.yml"
when: auths_basic is defined and auths_basic | length > 0

- include_tasks: "{{ role_path }}/tasks/steps/generate-serverblock-tf.yml"
- include_tasks: "{{ role_path }}/tasks/nginx_steps/generate-serverblock-tf.yml"

# Generate SSL certificate configurations
- include_tasks: "{{ stackhead__roles }}/stackhead_module_api/tasks/ssl-certificate.yml"
File renamed without changes.

0 comments on commit a611e2c

Please sign in to comment.