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

Commit

Permalink
chore: use domain filters from StackHead
Browse files Browse the repository at this point in the history
  • Loading branch information
saitho committed Mar 10, 2021
1 parent b8f7336 commit d693f6f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 37 deletions.
27 changes: 0 additions & 27 deletions filter_plugins/domain.py

This file was deleted.

7 changes: 1 addition & 6 deletions stackhead-module.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
---
type: webserver
#terraform:
# provider:
# vendor: getstackhead
# name: nginx
# version: 1.3.2
type: dns
4 changes: 2 additions & 2 deletions tasks/steps/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
- module.config.cloudflare_api_token|d("") != ""
- name: "Create A record for domain {{ item.domain }}"
cloudflare_dns:
zone: "{{ item.domain|domain }}"
record: "{{ item.domain|subdomain|d('@', true) }}"
zone: "{{ item.domain|getstackhead.stackhead.domain }}"
record: "{{ item.domain|getstackhead.stackhead.subdomain|d('@', true) }}"
type: A
value: "{{ ansible_ssh_host }}"
account_email: "{{ module.config.cloudflare_email }}"
Expand Down
4 changes: 2 additions & 2 deletions tasks/steps/destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
- module.config.cloudflare_api_token|d("") != ""
- name: "Remove A record for domain {{ item.domain }}"
cloudflare_dns:
zone: "{{ item.domain|domain }}"
record: "{{ item.domain|subdomain|d('@', true) }}"
zone: "{{ item.domain|getstackhead.stackhead.domain }}"
record: "{{ item.domain|getstackhead.stackhead.subdomain|d('@', true) }}"
type: A
value: "{{ ansible_ssh_host }}"
account_email: "{{ module.config.cloudflare_email }}"
Expand Down

0 comments on commit d693f6f

Please sign in to comment.