{"id":16355834,"url":"https://github.com/lyz-code/ansible-generic-program-install","last_synced_at":"2025-10-19T23:32:57.022Z","repository":{"id":101515800,"uuid":"283291812","full_name":"lyz-code/ansible-generic-program-install","owner":"lyz-code","description":null,"archived":false,"fork":false,"pushed_at":"2020-07-28T18:12:53.000Z","size":63,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-29T06:09:59.805Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lyz-code.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","contributing":null,"funding":null,"license":"COPYING","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":"2020-07-28T18:12:09.000Z","updated_at":"2021-01-31T18:56:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"745c6a28-24f6-431c-9782-6badb0d62527","html_url":"https://github.com/lyz-code/ansible-generic-program-install","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyz-code%2Fansible-generic-program-install","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyz-code%2Fansible-generic-program-install/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyz-code%2Fansible-generic-program-install/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyz-code%2Fansible-generic-program-install/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lyz-code","download_url":"https://codeload.github.com/lyz-code/ansible-generic-program-install/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239665368,"owners_count":19676922,"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-11T01:41:54.379Z","updated_at":"2025-10-19T23:32:56.932Z","avatar_url":"https://github.com/lyz-code.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# generic_program_install\n\nBase rol to install programs\n\n## Requirements\n\nNone\n\n## Role Variables\n\n* `remove_git`: Boolean to remove the `.git` directory (Default: `False`)\n* `local_fetch`: Boolean to fetch the configurations in the machine running\n  ansible instead of in the target server (Default: `False`)\n* `install`    : Dictionary with the information of the program to install\n  * `packages` : List of packages to install with the package manager\n  * `pip_packages` : List of pip packages to install\n  * `pip3_packages` : List of pip3 packages to install\n\n* `config`: Dictionary with the information of the configuration\n  * `directory`: Base directory to perform the clone of the configuration\n    directory, for example: `~/.rcfiles`.\n  * `git_repo`: Url to the git group of repositories of your dotfiles, for\n    example: `https://git.myrepo.com/rcfiles`.\n  * `packages`: List of packages to configure\n\nImagine that we've set\n\n```yaml\nconfig:\n  directory: ~/.rcfiles\n  git_repo: https://git.myrepo.com/rcfiles\n  packages:\n    - package_1\n    - package_2\n\n```\n\nThe configuration part will clone https://git.myrepo.com/rcfiles/package_1 and\nhttps://git.myrepo.com/rcfiles/package_2 into `~/.rcfiles/package_1` and\n`~/.rcfiles/package_2`.\n\nIt assumes that in each of those repositories you have the same structure that\nyou'd have on your home directory, so for example\n\n```bash\n$ tree -a ~/.rcfiles/package_1\n├── .local\n│   └── share\n│       └── package_1_dir\n└── .package1_rc\n```\n\n## Example playbook\n\n```yaml\n- hosts: all\n  roles:\n    - generic_program_install\n```\n\n## Testing\n\nTo test the role you need [molecule](http://molecule.readthedocs.io/en/latest/).\n\n```bash\nmolecule test --all\n```\n\nThere are two test cases:\n\n* `default`: Tests normal usage with full features\n* `no_config`: Tests the case where no configuration is done\n\n## Todo\n\n* Refactor to avoid duplicated code, keeping in mind the `~/.config` and\n  `/.local/share` cases\n\n## License\n\nGPLv2\n\n## Author Information\nLyz (lyz@riseup.net)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyz-code%2Fansible-generic-program-install","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flyz-code%2Fansible-generic-program-install","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyz-code%2Fansible-generic-program-install/lists"}