{"id":15698392,"url":"https://github.com/bcoca/ansible-tidy","last_synced_at":"2025-07-22T04:35:07.322Z","repository":{"id":150313101,"uuid":"53059703","full_name":"bcoca/ansible-tidy","owner":"bcoca","description":"tidy role","archived":false,"fork":false,"pushed_at":"2017-02-10T23:21:31.000Z","size":3,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T08:52:02.246Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bcoca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-03T15:07:27.000Z","updated_at":"2023-06-04T00:32:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"a577c3e6-dff2-4ddc-a186-95987f3d41ca","html_url":"https://github.com/bcoca/ansible-tidy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bcoca/ansible-tidy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcoca%2Fansible-tidy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcoca%2Fansible-tidy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcoca%2Fansible-tidy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcoca%2Fansible-tidy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcoca","download_url":"https://codeload.github.com/bcoca/ansible-tidy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcoca%2Fansible-tidy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264469344,"owners_count":23613249,"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-10-03T19:26:36.486Z","updated_at":"2025-07-22T04:35:07.285Z","avatar_url":"https://github.com/bcoca.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Tidy\n====\n\nA role to 'tidy up' a directory, feed it a path and a list of files that should be there and it will remove all the files that should not be there.\n\nRole Variables\n--------------\n\n###Required\n\n* tidy_path: the path to the directory to 'tidy up', i.e `/etc/apache2/conf.d`\n* tidy_expected: list of files that 'should be there', i.e `['vhost1.conf', 'vhost2.conf']`\n\n###Optional\n\n* tidy_handler: A handler that will execute if files are deleted, it could use the `tidy_removed` var that cointains the deleted file list (`default: tidy_show`, prints the list to screen)\n\n\n###Registered\n\n* tidy_existing: list of files that existed in path, (default: [])\n* tidy_removed: list of files removed, (default: [])\n\nDependencies\n------------\n\nN/A\n\nExample Playbook\n----------------\n\nIncluding an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:\n\n    - hosts: webservers\n      roles:\n         - { role: briancoca.tidy, tidy_path: /etc/apache2/conf.d, tidy_expected: ['vhost1.conf', 'vhost2.conf'], tidy_handler: mailme}\n\nLicense\n-------\n\nGPLv3\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcoca%2Fansible-tidy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcoca%2Fansible-tidy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcoca%2Fansible-tidy/lists"}