{"id":18745795,"url":"https://github.com/moshloop/ansible-deploy","last_synced_at":"2026-01-24T13:41:42.649Z","repository":{"id":138334052,"uuid":"146594248","full_name":"moshloop/ansible-deploy","owner":"moshloop","description":null,"archived":false,"fork":false,"pushed_at":"2019-04-09T17:15:07.000Z","size":1184,"stargazers_count":1,"open_issues_count":6,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-28T20:26:33.489Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.moshloop.com/ansible-deploy","language":"Smarty","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/moshloop.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":"2018-08-29T12:07:41.000Z","updated_at":"2023-07-25T14:19:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"60b53aa0-b633-47cf-af31-6c9af8bf9e79","html_url":"https://github.com/moshloop/ansible-deploy","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshloop%2Fansible-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshloop%2Fansible-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshloop%2Fansible-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshloop%2Fansible-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moshloop","download_url":"https://codeload.github.com/moshloop/ansible-deploy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239627234,"owners_count":19670844,"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-11-07T16:19:41.233Z","updated_at":"2025-11-23T14:30:23.929Z","avatar_url":"https://github.com/moshloop.png","language":"Smarty","funding_links":[],"categories":[],"sub_categories":[],"readme":"Opionated role for creating shortcuts for various ansible tasks\n\n### files\n\n```yaml\nfiles:\n  /etc/some/file: file\n  /etc/some/file2: file2\n```\n\nShorthand for copying files using [copy](https://docs.ansible.com/ansible/latest/modules/copy_module.html)\n\n### templates\n```yaml\ntemplates:\n  /etc/some/file: file\n  /etc/some/file2: file2\n```\n\nShorthand for templating files using [template](https://docs.ansible.com/ansible/latest/modules/template_module.html)\n\n### containers\n```yaml\ncontainers:\n - image: nginx\n   env:\n     DOMAIN: localhost.com\n - image: nginx\n   docker_args: -p 8080:80\n```\n### Arguments\n\n| Argument       | Default              | Description |\n| -------------- | -------------------- | ----------- |\n| **image**        | [Required]           | Docker image to run  |\n| **service** | base image name       | The name of the systemd service |\n| env     |                      | A dictionary of environment variables to pass through |\n| docker_args |                      | Additional arguments to the docker client e.g. `-p 8080:8080` |\n| docker_opts | | Additional options to the docker client e.g. `-H unix:///tmp/var/run/docker.sock` |\n| args |                   | Additional arguments to the container |\n| volumes |                |                                       |\n| ports |                |                                       |\n\n\n### Example\n\n```yaml\n---\n- hosts: localhost\n  roles:\n    - moshloop.deploy\n  vars:\n    containers:\n     - image: nginx\n       service: nginx\n       env:\n         DOMAIN: localhost.com\n     - image: nginx\n       service: nginx2\n       docker_args: -p 8080:80\n\n```\n\n### mounts\n```yaml\nmounts:\n    \"/mnt/point\": \"nfserver:/volume\"\n```\n\nShorthand for mounting volumes using [fstab](https://docs.ansible.com/ansible/latest/modules/fstab_module.html)\n\n### commands\n```yaml\ncommands:\n    - echo 123\n```\n\nShorthand for executing shell commands\n\n### sysctl\n\n```yaml\nsysctls:\n  \"vm.max_map_count\": 262144\n```\n\nShorthand for applying sysctl settings [sysctl](https://docs.ansible.com/ansible/latest/modules/sysctl_module.html)\n\n### group vars / tasks\nAutomatically imports vault and variables files\n\n### group tasks\nChecks for and runs custom tasks for each group, by dynamically include a task list based on group names.\n\ne.g. group_names == 'web,prod' will look for and run `web.yml` and `prod.yml` in the same directory as the playbook","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoshloop%2Fansible-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoshloop%2Fansible-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoshloop%2Fansible-deploy/lists"}