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

Commit

Permalink
feat: use main task from StackHead module API
Browse files Browse the repository at this point in the history
  • Loading branch information
saitho committed Nov 15, 2020
1 parent 05864a9 commit b022eb5
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 7 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 Caddy Terraform file
import_tasks: "../tasks/steps/generate-serverconfig-tf.yml"
import_tasks: "../tasks/caddy_steps/generate-serverconfig-tf.yml"
- name: Generate Caddyfile
import_tasks: "../tasks/steps/generate-caddyfile-tf.yml"
import_tasks: "../tasks/caddy_steps/generate-caddyfile-tf.yml"
vars:
role_path: ".."
caddy_root: "."
2 changes: 0 additions & 2 deletions tasks/destroy.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"
2 changes: 1 addition & 1 deletion tasks/deploy.yml → tasks/steps/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
with_items: "{{ app_config.domains }}"

- name: Generate Caddy Terraform file
include_tasks: "{{ role_path }}/tasks/steps/generate-serverconfig-tf.yml"
include_tasks: "{{ role_path }}/tasks/caddy_steps/generate-serverconfig-tf.yml"

2 changes: 1 addition & 1 deletion tasks/setup.yml → tasks/steps/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
vars:
caddy_install_source: package
- name: Overwrite Caddyfile
include_tasks: "{{ role_path }}/tasks/steps/generate-caddyfile-tf.yml"
include_tasks: "{{ role_path }}/tasks/caddy_steps/generate-caddyfile-tf.yml"
- name: Restart Caddy
command: /bin/true
notify:
Expand Down

0 comments on commit b022eb5

Please sign in to comment.