{"id":20551760,"url":"https://github.com/do-community/ansible-practice","last_synced_at":"2025-04-14T11:32:47.065Z","repository":{"id":37419227,"uuid":"346779033","full_name":"do-community/ansible-practice","owner":"do-community","description":"Playbook examples to demonstrate basic concepts when writing Ansible playbooks.","archived":false,"fork":false,"pushed_at":"2022-10-25T11:24:55.000Z","size":391,"stargazers_count":32,"open_issues_count":1,"forks_count":44,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-28T00:44:24.239Z","etag":null,"topics":["ansible","ansible-playbook","devops","learning","learning-by-doing"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/do-community.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}},"created_at":"2021-03-11T17:12:39.000Z","updated_at":"2025-03-19T12:46:40.000Z","dependencies_parsed_at":"2023-01-19T12:17:44.441Z","dependency_job_id":null,"html_url":"https://github.com/do-community/ansible-practice","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/do-community%2Fansible-practice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-community%2Fansible-practice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-community%2Fansible-practice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-community%2Fansible-practice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/do-community","download_url":"https://codeload.github.com/do-community/ansible-practice/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248872035,"owners_count":21175337,"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","ansible-playbook","devops","learning","learning-by-doing"],"created_at":"2024-11-16T02:33:29.398Z","updated_at":"2025-04-14T11:32:47.039Z","avatar_url":"https://github.com/do-community.png","language":"HTML","readme":"# How To Write Ansible Playbooks\n\nThis repository contains the examples and demos from the [How To Write Ansible Playbooks](https://www.digitalocean.com/community/tutorial_series/how-to-write-ansible-playbooks) Tutorial Series.\n\n_Please notice that the playbooks in this repository are for demonstration and learning. They are not intended for production setups._\n\n## Usage\n\nTo try these examples on your local Ansible setup, start by cloning this repository on your **Ansible Control Node**.\n\n```command\ngit clone https://github.com/do-community/ansible-practice.git\ncd ansible-practice\n```\n\nEdit the included `inventory` file to include your remote node(s):\n\n```command\nnano inventory\n```\n\n```ini\n\n[dev]\n203.0.113.10\n\n[all:vars]\nansible_python_interpreter=/usr/bin/python3\n```\n\nSave and close the file. \n\nYou can run the playbooks with:\n\n```command\nansible-playbook -i inventory playbook-01.yml -u REMOTE_USER\n```\n\nIf the playbook has a `become` directive it means you'll most probably will have to provide the `sudo` password for your connecting user. You dan do that by including the `-K` parameter:\n\n```command\nansible-playbook -i inventory playbook-01.yml -u REMOTE_USER -K\n```\n\nFor more details, please refer to the tutorial series: [How To Write Ansible Playbooks](https://www.digitalocean.com/community/tutorial_series/how-to-write-ansible-playbooks).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdo-community%2Fansible-practice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdo-community%2Fansible-practice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdo-community%2Fansible-practice/lists"}