{"id":13825211,"url":"https://github.com/volanja/ansible_tools","last_synced_at":"2026-01-19T19:34:54.800Z","repository":{"id":12361497,"uuid":"15010156","full_name":"volanja/ansible_tools","owner":"volanja","description":"ansible_tools","archived":false,"fork":false,"pushed_at":"2018-02-25T15:46:49.000Z","size":29,"stargazers_count":20,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-05T09:13:56.853Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/volanja.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-07T17:58:57.000Z","updated_at":"2023-02-22T08:28:20.000Z","dependencies_parsed_at":"2022-09-23T05:50:41.589Z","dependency_job_id":null,"html_url":"https://github.com/volanja/ansible_tools","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volanja%2Fansible_tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volanja%2Fansible_tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volanja%2Fansible_tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volanja%2Fansible_tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/volanja","download_url":"https://codeload.github.com/volanja/ansible_tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225465291,"owners_count":17478518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T09:01:16.624Z","updated_at":"2026-01-19T19:34:54.790Z","avatar_url":"https://github.com/volanja.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# AnsibleTools\n\nAnsible Tools e.g. Create directory by BestPractice\n\n[![Gem Version](https://badge.fury.io/rb/ansible_tools.png)](http://badge.fury.io/rb/ansible_tools)\n[![Code Climate](https://codeclimate.com/github/volanja/ansible_tools.png)](https://codeclimate.com/github/volanja/ansible_tools)\n[![Build Status](https://travis-ci.org/volanja/ansible_tools.svg?branch=master)](https://travis-ci.org/volanja/ansible_tools)\n\n## Installation\n\nInstall it yourself as:\n```\n$ gem install ansible_tools\n```\n\n## Usage\n\n```\n$ ansible-tools\nCommands:\n  ansible-tools help [COMMAND]      # Describe available commands or one specific command\n  ansible-tools init [-s][-r][-y]  # create ansible files by BestPractice\n  ansible-tools show                # show ansible valiables in vars/main.yml\n  ansible-tools version             # show version\n```\n\n### BestPractice\n[Best Practices - ANSIBLEWORKS](http://www.ansibleworks.com/docs/playbooks_best_practices.html)\n\n```\n$ ansible-tools init [-y]\n\t\tcreate\troles/common/tasks\n\t\tcreate\troles/common/handlers\n\t\tcreate\troles/common/templates\n\t\tcreate\troles/common/vars\n\t\tcreate\troles/common/files\n\t\tcreate\tgroup_vars\n\t\tcreate\thost_vars\n\t\tcreate\tsite.yml\n\t\tcreate\troles/common/tasks/main.yml\n\t\tcreate\troles/common/handlers/main.yml\n\t\tcreate\troles/common/templates/foo.conf.j2  #(*1)\n\t\tcreate\troles/common/vars/main.yml\n\t\tcreate\troles/common/files/bar.txt  #(*1)\n\t\tcreate\tproduction  #(*1)\n\t\tcreate\tstage       #(*1)\n\t\tcreate\tgroup_vars/group1  #(*1)\n\t\tcreate\tgroup_vars/group2  #(*1)\n\t\tcreate\thost_vars/hostname1  #(*1)\n\t\tcreate\thost_vars/hostname2  #(*1)\n\n(*1)...if set [-y], this file is not create.\n```\n\n### Simple\n\n```\n$ ansible-tools init -s [-y]\n\t\tcreate\troles/common/tasks\n\t\tcreate\troles/common/handlers\n\t\tcreate\troles/common/templates\n\t\tcreate\troles/common/vars\n\t\tcreate\troles/common/files\n\t\tcreate\tsite.yml\n\t\tcreate\troles/common/tasks/main.yml\n\t\tcreate\troles/common/handlers/main.yml\n\t\tcreate\troles/common/templates/foo.conf.j2  #(*1)\n\t\tcreate\troles/common/vars/main.yml\n\t\tcreate\troles/common/files/bar.txt  #(*1)\n\n(*1)...if set [-y], this file is not create.\n```\n\n### Add Role\n\n```\n$ ansible-tools init -r \u003croles name\u003e [-y]\n\n$ ansible-tools init -r gitlab\n\t\tcreate\troles/gitlab/tasks\n\t\tcreate\troles/gitlab/handlers\n\t\tcreate\troles/gitlab/templates\n\t\tcreate\troles/gitlab/vars\n\t\tcreate\troles/gitlab/files\n\t\tcreate\tsite.yml\n\t\tcreate\troles/gitlab/tasks/main.yml\n\t\tcreate\troles/gitlab/handlers/main.yml\n\t\tcreate\troles/gitlab/templates/foo.conf.j2  #(*1)\n\t\tcreate\troles/gitlab/vars/main.yml\n\t\tcreate\troles/gitlab/files/bar.txt  #(*1)\n\n(*1)...if set [-y], this file is not create.\n```\n\n### Show Variables\nSearch file and write list\nfile =\u003e  `roles/*/vars/main.yml`, `group_vars/*.yml`, `host_vars/*.yml`, `*.yml`\n\n```\n$ ansible-tools show\n+----------------------------------------------------------------------------+\n|             File             |          Key          |        Value        |\n+----------------------------------------------------------------------------+\n| host_vars/main.yml           | var1                  | num1                |\n| group_vars/main.yml          | var2                  | num2                |\n| roles/gitlab/vars/main.yml   | mysql_gitlab_password | password            |\n| roles/gitlab/vars/main.yml   | mysql_gitlab_database | gitlabhq_production |\n| roles/mariadb/vars/main.yml  | mysql_root_password   | password            |\n| roles/Packages/vars/main.yml | www_port              |                  80 |\n| roles/ruby/vars/main.yml     | ruby_ver              | 2.0.0-p247          |\n+----------------------------------------------------------------------------+\n```\n\n### Show Variables\nshow version\n\n```\n$ ansible-tools version\n0.0.4\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## History\n0.0.4  Add Option init [-y]\n\n## TODO\n+ Make Test\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolanja%2Fansible_tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvolanja%2Fansible_tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolanja%2Fansible_tools/lists"}