{"id":21605994,"url":"https://github.com/archf/ansible-lxcm","last_synced_at":"2026-02-12T20:31:56.253Z","repository":{"id":89975025,"uuid":"48765945","full_name":"archf/ansible-lxcm","owner":"archf","description":"An ansible role to manage lxc container instances on a host","archived":false,"fork":false,"pushed_at":"2016-11-07T16:36:25.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-12T19:11:36.364Z","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/archf.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":"2015-12-29T20:31:16.000Z","updated_at":"2016-01-15T21:40:43.000Z","dependencies_parsed_at":"2023-05-30T18:00:29.523Z","dependency_job_id":null,"html_url":"https://github.com/archf/ansible-lxcm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/archf/ansible-lxcm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archf%2Fansible-lxcm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archf%2Fansible-lxcm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archf%2Fansible-lxcm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archf%2Fansible-lxcm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/archf","download_url":"https://codeload.github.com/archf/ansible-lxcm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archf%2Fansible-lxcm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29380604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T19:05:20.189Z","status":"ssl_error","status_checked_at":"2026-02-12T19:01:44.216Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-24T20:18:29.008Z","updated_at":"2026-02-12T20:31:56.238Z","avatar_url":"https://github.com/archf.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansible-lxcm\n\nA role to manage lxc containers on a host.\n\n## Requirements\n\n### Ansible version\n\nMinimum required ansible version is 2.0.\n\n## Description\n\nThe goal is to get vagrant, vagrant-lxc, livirt-lxc out of the way.\nDefine useful alias\n\n```bash\n# start container (akin to vagrant up)\nalias acu=\"ansible -i local -e lxcm_state=started\"\n\n# start container (akin to vagrant halt)\nalias ach=\"ansible -i local -e lxcm_state=stopped\"\n\n# start container (akin to vagrant reload)\nalias acu=\"ansible -i local -e lxcm_state=restarted\"\n\n# start container (akin to vagrant destroy)\nalias acd=\"ansible -i local -e lxcm_state=absent\"\n\n# freeze container\nalias acu=\"ansible -i local -e lxcm_state=frozen\"\n```\n\n\n## Role Variables\n\n### Variables conditionally loaded\n\nNone.\n\n### Default vars\n\nDefaults from `defaults/main.yml`.\n\n```yaml\n# defaults file for ansible-lxcm\n\nprivate_dir: \"{{ playbook_dir }}/private\"\n\nlxcm_default_grp: \"{{ ansible_hostname }}_c\"\n\n# default container group to add container instance to\nlxcm_child_grp:\n  - \"all_c\"\n\n# default dns domain (used when generating inventory dynamically)\nlxcm_domain: \"lxc\"\n\n# boolean to figure if we need to reprovision or not. Value dependends on\n# lxcm_state.\nlxcm_provision: false\n\n```\n\n\n## Installation\n\n### Install with Ansible Galaxy\n\n```shell\nansible-galaxy install archf.lxcm\n```\n\nBasic usage is:\n\n```yaml\n- hosts: all\n  roles:\n    - role: archf.lxcm\n```\n\n### Install with git\n\nIf you do not want a global installation, clone it into your `roles_path`.\n\n```shell\ngit clone git@github.com:archf/ansible-lxcm.git /path/to/roles_path\n```\n\nBut I often add it as a submdule in a given `playbook_dir` repository.\n\n```shell\ngit submodule add git@github.com:archf/ansible-lxcm.git \u003cplaybook_dir\u003e/roles/lxcm\n```\n\nAs the role is not managed by Ansible Galaxy, you do not have to specify the\ngithub user account.\n\nBasic usage is:\n\n```yaml\n- hosts: all\n  roles:\n  - role: lxcm\n```\n\n## Ansible role dependencies\n\nNone.\n\n## License\n\nMIT.\n\n## Author Information\n\nFelix Archambault.\n\n## Role stack\n\nThis role was carefully selected to be part an ultimate deck of roles to manage\nyour infrastructure.\n\nAll roles' documentation is wrapped in this [convenient guide](http://127.0.0.1:8000/).\n\n\n---\nThis README was generated using ansidoc. This tool is available on pypi!\n\n```shell\npip3 install ansidoc\n\n# validate by running a dry-run (will output result to stdout)\nansidoc --dry-run \u003crolepath\u003e\n\n# generate you role readme file\nansidoc \u003crolepath\u003e\n```\n\nYou can even use it programatically from sphinx. Check it out.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchf%2Fansible-lxcm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchf%2Fansible-lxcm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchf%2Fansible-lxcm/lists"}