{"id":16829959,"url":"https://github.com/nhojpatrick/ansible-example-enrollment","last_synced_at":"2026-05-10T16:11:22.856Z","repository":{"id":136953407,"uuid":"342528291","full_name":"nhojpatrick/ansible-example-enrollment","owner":"nhojpatrick","description":"Ansible Example of Enrollment","archived":false,"fork":false,"pushed_at":"2021-02-26T10:01:48.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-24T08:13:33.900Z","etag":null,"topics":["ansible","ssh-keys","vagrant","virtualbox"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nhojpatrick.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-26T09:37:28.000Z","updated_at":"2021-02-26T10:01:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"d93d0fdd-f92d-455b-86a9-0b1b7f89a6b1","html_url":"https://github.com/nhojpatrick/ansible-example-enrollment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhojpatrick%2Fansible-example-enrollment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhojpatrick%2Fansible-example-enrollment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhojpatrick%2Fansible-example-enrollment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nhojpatrick%2Fansible-example-enrollment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nhojpatrick","download_url":"https://codeload.github.com/nhojpatrick/ansible-example-enrollment/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244117526,"owners_count":20400742,"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":["ansible","ssh-keys","vagrant","virtualbox"],"created_at":"2024-10-13T11:36:46.278Z","updated_at":"2026-05-10T16:11:17.817Z","avatar_url":"https://github.com/nhojpatrick.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vagrant Example of Enrollment\n\n## Creation Your Own SSH Key\n\n```bash\n$ ssh-keygen -f provisioning/.ssh/id_ed25519 -t ed25519 -N \"\" -C \"vagrant@domain.local\"\n```\n\n## What to do...\n\n### Setup\n\n```bash\n$ vagrant up\n```\n\n### Setup touchdown\n\n```bash\n$ vagrant ssh touchdown\n```\n\n### Configure\n\n```bash\n$ vagrant ssh touchdown\nvagrant@touchdown:~$ sudo apt install sshpass\nvagrant@touchdown:~$ cd /vagrant/setup/\nvagrant@touchdown:/vagrant/setup$ ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i hosts-p0-dc0 -i hosts-p0-dc1 playbook_0_setup.yaml\n```\n\n### Enrollment\n\n```bash\nvagrant@touchdown:/vagrant/setup$ su - ruser\nruser@touchdown:~$ cd /vagrant/setup/\nruser@touchdown:/vagrant/setup/$ ansible-galaxy collection install ansible.posix\nruser@touchdown:/vagrant/setup/$ ssh-keygen\nruser@touchdown:/vagrant/setup/$ ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i hosts-p0-dc0 -i hosts-p0-dc1 playbook_1_enrol_0_known_hosts.yaml --ask-pass\nruser@touchdown:/vagrant/setup/$ ansible-playbook -i hosts-p0-dc0 -i hosts-p0-dc1 playbook_1_enrol_1_authorized_key.yaml --ask-pass\n```\n\n### Checking\n\n```bash\nvagrant@touchdown:/vagrant/setup$ su - ruser\nruser@touchdown:~$ cd /vagrant/setup/\nruser@touchdown:/vagrant/setup/$ ansible-playbook -i hosts-p0-dc0 -i hosts-p0-dc1 playbook_2_check.yaml\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhojpatrick%2Fansible-example-enrollment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnhojpatrick%2Fansible-example-enrollment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhojpatrick%2Fansible-example-enrollment/lists"}