This Ansible Collection provides a module for managing DNS records on porkbun.
This collection includes the following module:
porkbun_record
: This module allows you to create, update, and delete DNS records on porkbun.
The collection can be installed with the ansible-galaxy
tool.
ansible-galaxy collection install sdorra.porkbun
For more information have a look at the ansible documentation
You can use the modules in this collection in your playbooks as follows:
- name: Create DNS record
sdorra.porkbun.porkbun_record:
state: present
domain: example.com
record_type: A
name: www
content: 192.0.2.1
ttl: 3600
api_key: your_api_key
secret_api_key: your_secret_api_key
Replace your_api_key
and your_secret_api_key
with your actual Porkbun API key and secret API key.
This collection is licensed under the GNU General Public License v3.0.