{"id":14984506,"url":"https://github.com/cdhai/ansible","last_synced_at":"2025-08-07T14:33:08.727Z","repository":{"id":165541245,"uuid":"586775951","full_name":"CDHai/Ansible","owner":"CDHai","description":"Linux system administration automation","archived":false,"fork":false,"pushed_at":"2023-02-24T08:08:58.000Z","size":3523,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-22T18:59:00.703Z","etag":null,"topics":["administration","ansible","ansible-playbook","ansible-roles","linux"],"latest_commit_sha":null,"homepage":"","language":"Jinja","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/CDHai.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-01-09T07:49:06.000Z","updated_at":"2024-05-16T13:47:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"3bb070f4-c5eb-4107-afdf-634401378634","html_url":"https://github.com/CDHai/Ansible","commit_stats":{"total_commits":42,"total_committers":4,"mean_commits":10.5,"dds":0.5952380952380952,"last_synced_commit":"6d1ab5d33116952b1b9f9d9912982a489455470e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CDHai%2FAnsible","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CDHai%2FAnsible/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CDHai%2FAnsible/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CDHai%2FAnsible/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CDHai","download_url":"https://codeload.github.com/CDHai/Ansible/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225950751,"owners_count":17550309,"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":["administration","ansible","ansible-playbook","ansible-roles","linux"],"created_at":"2024-09-24T14:09:10.878Z","updated_at":"2024-11-22T18:59:13.440Z","avatar_url":"https://github.com/CDHai.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Lab Review\n\n## Lab 6\n### 6.1, Requirements\nWrite Roles Ansible:\n- Create user.\n- Disable SSH Password log in.\n- Grant `sudo` permission for user.\n- Add Authorized Key for user ssh by `ssh-key`. \n### 6.2, Labbing\n* Source: Clone above.\n* Result:\n![image](https://user-images.githubusercontent.com/88284121/215699659-d41f64bd-c633-4480-a712-27b80dff52ae.png)\n* Checking:\n##### 1. Creat User\n![image](https://user-images.githubusercontent.com/88284121/215700322-e1c679eb-503a-41d7-a0cb-c59d1cdc9bac.png)\n![image](https://user-images.githubusercontent.com/88284121/215700385-44c8c8e4-692b-4234-a76e-9c85bb84465f.png)\n![image](https://user-images.githubusercontent.com/88284121/215700440-562d6e7e-006e-497b-8fa0-582d47ebdf73.png)\n##### 2. Disable SSH\n![image](https://user-images.githubusercontent.com/88284121/215700723-baa4a9b3-c0d0-47b7-ae0b-1f1a7159b1ca.png)\n![image](https://user-images.githubusercontent.com/88284121/215700786-d2148f47-ace0-4096-a06c-c5cb9d8c9a22.png)\n##### 3. Grant `sudo` permission for user\n![image](https://user-images.githubusercontent.com/88284121/215701229-84f85919-f44a-4c23-9f3a-c13618ef389d.png)\n![image](https://user-images.githubusercontent.com/88284121/215701266-dac33948-5dde-45fd-bf9c-d3ccdc22d48f.png)\n![image](https://user-images.githubusercontent.com/88284121/215701331-a069ce51-c1f2-4b98-9126-302177763c9e.png)\n##### 4. Add Authorized Key\n![image](https://user-images.githubusercontent.com/88284121/215701510-2550d757-de6d-4bf4-bf14-f4c1ed41cebe.png)\n![image](https://user-images.githubusercontent.com/88284121/215701558-faf4bf25-4519-4a6e-aa47-4a82b764bd87.png)\n![image](https://user-images.githubusercontent.com/88284121/215701629-ae16b035-7a17-43e4-b498-3607e475b9db.png)\n\n## Lab 7\n### 7.1, Requirements\nWrite Roles Ansible:\n- Install **DHCP Server** (Both `Ubuntu` \u0026 `CentOS`).\n- Config **DNS** for domains:\n   + test1.com - 1.2.3.4\n   + test2.com - 1.2.3.4\n### 7.2, Labbing\n* Source: Clone above.\n* Result:\n![image](https://user-images.githubusercontent.com/88284121/216885924-daf188a6-ea88-4749-bf82-b92011d9c3d0.png)\n* Checking:\n##### 1. Install **DHCP Server** (Both `Ubuntu` \u0026 `CentOS`)\n![image](https://user-images.githubusercontent.com/88284121/219608722-ee57c075-8cb8-4a98-ae5f-3a5713d0c100.png)\n![image](https://user-images.githubusercontent.com/88284121/220574671-dff6bfde-ff2a-401e-b21a-90ddd59ca058.png)\n##### 2. Config **DNS** for domains:\n* **Ubuntu**:\n![image](https://user-images.githubusercontent.com/88284121/216886940-cb837151-48e1-4832-8ede-0512df7808eb.png)\n* **CentOS**:\n![image](https://user-images.githubusercontent.com/88284121/216887011-9e3aff83-4b2a-4066-92c7-4607ffce9c7d.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdhai%2Fansible","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdhai%2Fansible","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdhai%2Fansible/lists"}