mprahl.update_ip_route53

update-ip-route53

This is an Ansible role that changes DNS records on Amazon's Route 53 (AWS) to update with your public IP address.

Please note that this role will install openssl, boto, and pyOpenSSL. If you're using CentOS or Red Hat, it will also install pip (which requires EPEL) and then install boto and pyOpenSSL in a Python virtual environment. This is because the version of pyOpenSSL included in the package is outdated.

If you're using Debian/Ubuntu or anything else, you will need to install openssl, boto, and pyOpenSSL manually before using this role.

Requirements

You need Ansible version 2.4 or higher to use this role. It must be run by the root user or with sudo.

Role Variables

Required Variables

  • update_ip_r53_aws_access_key - the access key for an AWS user who can add records to the specified zone.
  • update_ip_r53_aws_secret_key - the secret key for the same AWS user.
  • update_ip_r53_records - a list describing the Route 53 (AWS) domains/zones where the public IP address should be updated. The important keys are zone and record. Optional keys include type (default is A) and wait.

Optional Variables

  • update_ip_r53_virtualenv_dir - the path to create the Python virtual environment for installing dependencies on CentOS or Red Hat.

Example Playbook

- name: Update host.example.com and host2.example.com
  hosts: host
  become: yes

  vars:
  - ler53_aws_access_key: SomeAccessKey
  - ler53_aws_secret_key: SomeSecretKey
  - update_ip_r53_records:
    - zone: example.com
      record: host.example.com
    - zone: example.com
      record: host2.example.com

  roles:
  - mprahl.update-ip-route53

License

MIT

Informazioni sul progetto

updates DNS records on Amazon's Route 53 (AWS) with your public IP address

Installa
ansible-galaxy install mprahl.update_ip_route53
Licenza
mit
Download
31.1k
Proprietario