{"id":18248099,"url":"https://github.com/loxda/ansible-foreman","last_synced_at":"2026-05-04T07:39:56.938Z","repository":{"id":191156880,"uuid":"676423061","full_name":"LOXDA/ansible-foreman","owner":"LOXDA","description":"Ansible playbooks to deploy theforeman.org using foreman-ansible-modules","archived":false,"fork":false,"pushed_at":"2024-05-27T23:24:41.000Z","size":6438,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"github","last_synced_at":"2024-05-28T08:45:17.651Z","etag":null,"topics":["ansible","ansible-playbook","foreman","foreman-proxy","theforeman"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/LOXDA.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":"2023-08-09T07:01:47.000Z","updated_at":"2024-05-29T22:42:23.733Z","dependencies_parsed_at":null,"dependency_job_id":"0c30e801-0ddd-40a7-942d-3258071a3551","html_url":"https://github.com/LOXDA/ansible-foreman","commit_stats":null,"previous_names":["loxda/ansible-foreman"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LOXDA/ansible-foreman","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LOXDA%2Fansible-foreman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LOXDA%2Fansible-foreman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LOXDA%2Fansible-foreman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LOXDA%2Fansible-foreman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LOXDA","download_url":"https://codeload.github.com/LOXDA/ansible-foreman/tar.gz/refs/heads/github","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LOXDA%2Fansible-foreman/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32599408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ansible","ansible-playbook","foreman","foreman-proxy","theforeman"],"created_at":"2024-11-05T09:35:35.753Z","updated_at":"2026-05-04T07:39:56.923Z","avatar_url":"https://github.com/LOXDA.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TFM FOREMAN\n\nOne tool to deploy the stack\n\n      +---------------------+\n      |      App (code)     |\n    ~~+---------------------+~~\n      |  Operating System   |\n      +---------------------+\n      |      (Virtual)      |\n    ~~+---------------------+~~\n      |      Physical       |\n      +---------------------+\n\n### Ansible repo to provision an instance of theforeman with custom set of parameters (deploy \u0026 provision)\n\nSetup deployement:\n\nUsing a working python environnement, or activate a virtualenv :\n\n```\n    pip3 install -r ./requirement.txt\n    export ANSIBLE_COLLECTIONS_PATH=./collections\n    ansible-galaxy collection install -r roles/requirements.yml\n    export ANSIBLE_ROLES_PATH=./roles\n    ansible-galaxy role install -r roles/requirements.yml\n```\n\nRun examples :\n```\n# clean environment (ONLY IF YOU NEED SOME CLEANUP)\nunset $(set | grep --line-buffered ^ANSIBLE_ | awk -F= '{print $1}')\n```\n```\n# deploy whole\nansible-playbook -i inventory/lab playbooks/foreman_deploy.yml\n```\n```\n# deploy only individual parts\nansible-playbook -i inventory/lab playbooks/foreman_puppet.yml --tags puppet\nansible-playbook -i inventory/lab playbooks/foreman_db.yml --tags db\nansible-playbook -i inventory/lab playbooks/foreman_app.yml --tags app\nansible-playbook -i inventory/lab playbooks/foreman_proxy.yml --tags proxy,oauth\n\n# +fixdhcp for debian\u003e10 with broken omapi in isc-dhcp packaging\nansible-playbook -i inventory/lab playbooks/foreman_proxy.yml --tags proxy,oauth,fixdhcp\n```\n```\n# provisioning\nansible-playbook -i inventory/lab playbooks/foreman_deploy.yml --tags provisioning\n```\n\nParameters are defined at inventory/group level.\u003cbr/\u003e\nBe sure to maps your instances to group in inventory files.\u003cbr/\u003e\nRename files in host_vars accordingly.\u003cbr/\u003e\n\nSome macro views:\n\n    ansible-playbook-grapher -vvvvvv --include-role-tasks -i inventory/mgmt playbooks/foreman_db.yml\n\n\u003cimg src=\"files/foreman_db.svg\" alt=\"foreman_db svg\" width=\"1200\"/\u003e\u003cbr\u003e\n\n    ansible-playbook-grapher -vvvvvv --include-role-tasks -i inventory/mgmt playbooks/foreman_puppet.yml\n\n\u003cimg src=\"files/foreman_puppet.svg\" alt=\"foreman_puppet svg\" width=\"1200\"/\u003e\u003cbr\u003e\n\n    ansible-playbook-grapher -vvvvvv --include-role-tasks -i inventory/mgmt playbooks/foreman_app.yml\n\n\u003cimg src=\"files/foreman_app.svg\" alt=\"foreman_app svg\" width=\"1200\"/\u003e\u003cbr\u003e\n\n    ansible-playbook-grapher -vvvvvv --include-role-tasks -i inventory/mgmt playbooks/foreman_proxy.yml --tags fixdhcp\n\n\u003cimg src=\"files/foreman_proxy.svg\" alt=\"foreman_proxy svg\" width=\"1200\"/\u003e\u003cbr\u003e\n\n    ansible-playbook-grapher -vvvvvv --include-role-tasks -i inventory/mgmt playbooks/foreman_provisioning.yml --tags provisioning\n\n\u003cimg src=\"files/foreman_provisioning.svg\" alt=\"foreman_provisioning svg\" width=\"1200\"/\u003e\u003cbr\u003e\n\n    ansible-playbook-grapher -vvvvvv --include-role-tasks -i inventory/mgmt playbooks/foreman_deploy.yml --tags tfm,fixdhcp,provisioning\n\n\u003cimg src=\"files/foreman_deploy.svg\" alt=\"foreman_deploy svg\" width=\"1200\"/\u003e\u003cbr\u003e\n\n## Requirements\n\nsee requirement.txt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floxda%2Fansible-foreman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floxda%2Fansible-foreman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floxda%2Fansible-foreman/lists"}