{"id":40745406,"url":"https://github.com/karmab/ansible-kcli-modules","last_synced_at":"2026-01-21T15:35:00.314Z","repository":{"id":146848349,"uuid":"120040071","full_name":"karmab/ansible-kcli-modules","owner":"karmab","description":"ansible modules for kcli","archived":false,"fork":false,"pushed_at":"2024-09-09T09:36:35.000Z","size":30,"stargazers_count":3,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-09-09T11:33:50.504Z","etag":null,"topics":["ansilbe","galaxy","kcli"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/karmab.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-02-02T22:53:14.000Z","updated_at":"2024-09-09T09:36:38.000Z","dependencies_parsed_at":"2024-07-30T12:12:37.011Z","dependency_job_id":"82216c6c-e83a-49cb-a80a-543bf6a546b8","html_url":"https://github.com/karmab/ansible-kcli-modules","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/karmab/ansible-kcli-modules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karmab%2Fansible-kcli-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karmab%2Fansible-kcli-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karmab%2Fansible-kcli-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karmab%2Fansible-kcli-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karmab","download_url":"https://codeload.github.com/karmab/ansible-kcli-modules/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karmab%2Fansible-kcli-modules/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28635919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T15:01:31.228Z","status":"ssl_error","status_checked_at":"2026-01-21T14:42:58.942Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["ansilbe","galaxy","kcli"],"created_at":"2026-01-21T15:35:00.256Z","updated_at":"2026-01-21T15:35:00.309Z","avatar_url":"https://github.com/karmab.png","language":"Python","readme":"# ansible-kcli-modules\n\nProvides access to the latest release of the kcli modules. \n\nInclude this role in a playbook, and any other plays, roles, and includes will have access to the modules.\n\nThe modules are found [here](./plugins/modules)\n\n## Requirements\n\n- Ansible \u003e= 2.9, it is recommended to download the latest version of [Ansible](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html).\n- [kcli](https://github.com/karmab/kcli)\n\n## Installation\n\nUse the Ansible Galaxy client to install the latest version of the collection:\n\n```\n$ ansible-galaxy collection install karmab.kcli\n```\n\nor using `requirements.yml`:\n\n```yaml\ncollections:\n  - name: karmab.kcli\n```\n\n## How to use\n\nThe following modules are available\n\n- kcli_vm\n- kcli_info\n- kcli_plan\n- kcli_product\n- kcli_cluster\n\nFor all of them, apart from mandatory parameters, you can provide a parameters dict with all your parameters\n\n#### kcli_vm\n\n```yaml\n  - name: Create vm tahitibob from centos8stream image and forcing memory to be 2G\n    karmab.kcli.kcli_vm:\n      name: tahitibob\n      state: present\n      image: centos8stream\n      parameters:\n       memory: 2048\n    register: result\n  - debug: var=result\n```\n\n|Parameter   |Required |Default Value         |\n|------------|---------|----------------------|\n|name        |true     |                      |\n|client      |false    |                      |\n|image       |false    |                      |\n|profile     |false    |                      |\n|parameters  |false    |Empty dict            |\n\n#### kcli_info\n\n```yaml\n- name: Get ip from vm tahitibob\n  karmab.kcli.kcli_info:\n    name: tahitibob\n  register: result\n- debug: var=result.meta.ip\n```\n\n|Parameter   |Required |Default Value         |\n|------------|---------|----------------------|\n|name        |true     |                      |\n|client      |false    |                      |\n|fields      |false    |Empty list            |\n|parameters  |false    |Empty dict            |\n\n#### kcli_plan\n\n```yaml\n- name: Launch plan wilibonka from plan file myplan.yml\n  karmab.kcli.kcli_plan:\n    name: wilibonka\n    inputfile: myplan.yml\n  register: result\n- debug: var=result\n```\n\n|Parameter   |Required |Default Value         |\n|------------|---------|----------------------|\n|name        |true     |                      |\n|client      |false    |                      |\n|inputfile   |false    |                      |\n|parameters  |false    |Empty dict            |\n\n#### kcli_cluster\n\n```yaml\n- name: Create a k8s cluster\n  karmab.kcli.kcli_cluster:\n    state: absent\n    name: myclu\n    type: kubeadm\n    parameters:\n     ctlplanes: 3\n     workers: 2\n  register: result\n- debug: var=result\n```\n\n|Parameter   |Required |Default Value         |\n|------------|---------|----------------------|\n|name        |true     |                      |\n|client      |false    |                      |\n|type        |false    |generic               |\n|parameters  |false    |Empty dict            |\n\n#### kcli_product\n\n```yaml\n- name: Deploy product origin, provided there is a kcli repo providing it\n  karmab.kcli.kcli_product:\n    name: microshift\n    product: microshift\n```\n\n|Parameter   |Required |Default Value         |\n|------------|---------|----------------------|\n|name        |true     |                      |\n|client      |false    |                      |\n|product     |true     |                      |\n|repo        |false    |                      |\n|parameters  |false    |Empty dict            |\n\n\n## License\n\nApache V2\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarmab%2Fansible-kcli-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarmab%2Fansible-kcli-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarmab%2Fansible-kcli-modules/lists"}