From a871f7f96245cfcfeeb8a82b4137e76ff78b36c5 Mon Sep 17 00:00:00 2001 From: Russell Harrison Date: Fri, 29 Jan 2016 15:46:39 -0500 Subject: Cleaning up the dyn ansible module for merging --- roles/lib_dyn/README.md | 29 +++++++++-------------------- roles/lib_dyn/defaults/main.yml | 2 -- roles/lib_dyn/handlers/main.yml | 2 -- roles/lib_dyn/tasks/main.yml | 3 +++ roles/lib_dyn/vars/main.yml | 2 -- 5 files changed, 12 insertions(+), 26 deletions(-) delete mode 100644 roles/lib_dyn/defaults/main.yml delete mode 100644 roles/lib_dyn/handlers/main.yml delete mode 100644 roles/lib_dyn/vars/main.yml diff --git a/roles/lib_dyn/README.md b/roles/lib_dyn/README.md index 225dd44b9..1eec9f81c 100644 --- a/roles/lib_dyn/README.md +++ b/roles/lib_dyn/README.md @@ -1,38 +1,27 @@ -Role Name +lib_dyn ========= -A brief description of the role goes here. +A role containing the dyn_record module for managing DNS records through Dyn's +API Requirements ------------ -Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. - -Role Variables --------------- - -A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. - -Dependencies ------------- - -A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles. +The module requires the `dyn` python module for interacting with the Dyn API. +https://github.com/dyninc/dyn-python Example Playbook ---------------- -Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: +To make sure the `dyn_record` module is available for use include the role +before it is used. - hosts: servers roles: - - { role: username.rolename, x: 42 } + - lib_dyn License ------- -BSD - -Author Information ------------------- +Apache -An optional section for the role authors to include contact information, or a website (HTML is not allowed). diff --git a/roles/lib_dyn/defaults/main.yml b/roles/lib_dyn/defaults/main.yml deleted file mode 100644 index ccc2e8561..000000000 --- a/roles/lib_dyn/defaults/main.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -# defaults file for lib_dyn diff --git a/roles/lib_dyn/handlers/main.yml b/roles/lib_dyn/handlers/main.yml deleted file mode 100644 index 2074235d2..000000000 --- a/roles/lib_dyn/handlers/main.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -# handlers file for lib_dyn diff --git a/roles/lib_dyn/tasks/main.yml b/roles/lib_dyn/tasks/main.yml index 35ee62e81..9b3b1b0b9 100644 --- a/roles/lib_dyn/tasks/main.yml +++ b/roles/lib_dyn/tasks/main.yml @@ -1,2 +1,5 @@ --- # tasks file for lib_dyn + +- name: Make sure python-dyn is installed + yum: name=python-dyn state=present diff --git a/roles/lib_dyn/vars/main.yml b/roles/lib_dyn/vars/main.yml deleted file mode 100644 index 4b2f35586..000000000 --- a/roles/lib_dyn/vars/main.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -# vars file for lib_dyn -- cgit v1.2.3