Skip to content

Instantly share code, notes, and snippets.

@nbuchwitz
Last active November 29, 2018 15:16
Show Gist options
  • Save nbuchwitz/123bd895704fd058b2a2ccb4b0f024ee to your computer and use it in GitHub Desktop.
Save nbuchwitz/123bd895704fd058b2a2ccb4b0f024ee to your computer and use it in GitHub Desktop.
Remove Route54 CNAME records with Ansible
- name: Remove CNAME record
route53:
state: absent
zone: "{{ item.zone }}"
record: "{{ item.record }}"
type: CNAME
value: "{{ item.target }}"
loop:
- { record: "somthing", zone: "example.com", target: "target.host.example.com" }
- { record: "another.one", zone: "example.com", target: "target.host.example.com" }
@bodsch
Copy link

bodsch commented Nov 29, 2018

mir fehlte der volle namen beim record
{ record: 'corporate.{{fqdn}}' , zone: moebius.express, target: "{{fqdn}}" }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment