{"id":39230414,"url":"https://github.com/becloudready/ansible-tutorials","last_synced_at":"2026-01-17T23:40:35.386Z","repository":{"id":48385544,"uuid":"148375714","full_name":"becloudready/ansible-tutorials","owner":"becloudready","description":"Ansible Tutorial to Supercharge your DevOps Life","archived":false,"fork":false,"pushed_at":"2024-03-08T18:00:20.000Z","size":115,"stargazers_count":21,"open_issues_count":0,"forks_count":94,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-03-18T01:01:06.092Z","etag":null,"topics":["ansible","devops","linux"],"latest_commit_sha":null,"homepage":"https://www.becloudready.com/cloud-engineer-training","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/becloudready.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}},"created_at":"2018-09-11T20:24:13.000Z","updated_at":"2024-03-18T01:01:06.093Z","dependencies_parsed_at":"2024-01-31T21:30:32.113Z","dependency_job_id":"f7d635da-4361-46a3-8571-6d4109df2d74","html_url":"https://github.com/becloudready/ansible-tutorials","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/becloudready/ansible-tutorials","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/becloudready%2Fansible-tutorials","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/becloudready%2Fansible-tutorials/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/becloudready%2Fansible-tutorials/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/becloudready%2Fansible-tutorials/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/becloudready","download_url":"https://codeload.github.com/becloudready/ansible-tutorials/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/becloudready%2Fansible-tutorials/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28522311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T22:11:28.393Z","status":"ssl_error","status_checked_at":"2026-01-17T22:11:27.841Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["ansible","devops","linux"],"created_at":"2026-01-17T23:40:35.322Z","updated_at":"2026-01-17T23:40:35.376Z","avatar_url":"https://github.com/becloudready.png","language":"Jinja","readme":"#  Ansible Tutorials\n\nSample programs and examples for DevOps Training\n\n\n\n# Ansible \n\nContains examples of Ansible playbooks\n\n\n\n## Get setup for your Local Git with Visual studio code\n\n\n\n## Ansible Instructions\n\nPlease use the instructions to setup environment at: \n\n### lab-01\n\nJust copy paste the instructions from lab-01 folder, it should work\n\n### lab-02\n```\ncd ansible/lab-02/\nansible-playbook java-nginx.yml\n```\n### lab-03\n\n```\ncd ansible/lab-03/\nansible-playbook web-page.yml\n```\n### lab-04\n\n```\ncd ansible/lab-04/\nansible-playbook deploy-web-content.yml\n```\n\n### lab-05\n\n```\ncd ansible/lab-05/\nansible-playbook deploy-web-content.yml\n```\n\n### lab-08\n\n```\nansible-galaxy collection install community.docker\ncd ansible/lab-08/\nansible-playbook -i ../inventory/ansible-nodes deploy-nifi.yml \\\n  -e \"nifi_admin_password=SomeSecurePassword\"\n```\n\n## lab-06 - Please don't push your AWS key on github\n\nLab to create instances on AWS. \n\n```\nsudo yum install python-pip -y\nsudo pip install boto\ncd ansible/lab-06/\nansible-playbook create_ec2_instance.yml\n\n```\nTo Terminate the instance ( You will need the instance id either from AWS console, or output from the create playbook)\n```\ncd ansible/lab-06/\nansible-playbook terminate_ec2_instance.yml\n\n```\n\n## Lab -07 - Please don't push your AWS key on github\n\nGenerate dynamic inventory and run playbooks\n```\ncd ansible/lab-07/\npython dynamic_inventory.py \u003caws-access-key\u003e \u003caws-access-secret-key\u003e\n\n```\n## Lab -08 - Please don't push your AWS key on github\n\nGenerate dynamic inventory and install docker followed by mssql docker image\n```\nansible-playbook lab-08/running_roles.yml\n```\n\n## Q\u0026A\n\n## Assignments\n\n- Write a ansible ad-hoc to retrieve the current date and time from web servers.\n- Create a group by name “db” and add remote node to the group.Verify connectivity with the group.\n- Write a ansible ad-hoc command to install \u0026 remove python3 \u0026 git package.\n- Add a system user called joe on all web servers. Make sure that the user has a home directory.\n- Write a ansible ad-hoc to clone the github repository. (https://github.com/becloudready/ansible-tutorials) \u0026 store it in location /tmp/.\n- Write a ad-hoc command to fetch the file .bash_profile from remote node \u0026 store it on controller node in home directory by name remote_node_profile.\n- Create a custom fact in remote nodes \u0026 get the git \u0026 httpd version using ansible adhoc command.\n- Write a playbook to read username \u0026 password as variables \u0026 display the output.\n- Write a playbook to install httpd using command line argument.\n- Write a playbook to get the following details of localhost using setup module \n  -   ansible_distribution \n  -   ansible_distribution_version \n  -   ansible_os_family\n- Write a playbook to perform the following arithmetic operations by passing values of x \u0026 y through vars.yaml file. \n  - Addition\n  - Subtraction\n  - Multiplication\n  - Division v)Modulus\n- Write a playbook to install httpd using conditional statement.\n- Write a playbook to create the following users using loops. \n  -   user:kunal groups:wheel \n  -   user:tom groups:user \n  -   user:bob groups:user\n- Write a playbook to install nginx \u0026 wget with \u0026 without tags.\n- Write a playbook to install apache web-server with customized default page which will prints \"Welcome to Ansible training with ip_address of remote node\".\n- Write a playbook to install Tomcat server\n- Write a playbook to install Tomcat server using roles\n- Write a playbook to install Jenkins server using roles\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbecloudready%2Fansible-tutorials","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbecloudready%2Fansible-tutorials","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbecloudready%2Fansible-tutorials/lists"}