{"id":15082036,"url":"https://github.com/viranson/ansible-deploy-webapp","last_synced_at":"2026-02-08T02:07:37.463Z","repository":{"id":44148764,"uuid":"511981148","full_name":"Viranson/ansible-deploy-webapp","owner":"Viranson","description":"Ansible Playbook with roles to deploy simple WebApp on Docker Container","archived":false,"fork":false,"pushed_at":"2022-08-25T12:24:31.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-18T03:04:26.410Z","etag":null,"topics":["ansible","ansible-playbook","ansible-role","ansible-roles","ansible-vault","configuration-management","container","docker","iac","iac-ansible","playbook","webapp"],"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/Viranson.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":"2022-07-08T17:49:49.000Z","updated_at":"2023-02-08T20:13:20.000Z","dependencies_parsed_at":"2022-09-05T06:40:38.731Z","dependency_job_id":null,"html_url":"https://github.com/Viranson/ansible-deploy-webapp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Viranson/ansible-deploy-webapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Viranson%2Fansible-deploy-webapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Viranson%2Fansible-deploy-webapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Viranson%2Fansible-deploy-webapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Viranson%2Fansible-deploy-webapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Viranson","download_url":"https://codeload.github.com/Viranson/ansible-deploy-webapp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Viranson%2Fansible-deploy-webapp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260477915,"owners_count":23015063,"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","ansible-role","ansible-roles","ansible-vault","configuration-management","container","docker","iac","iac-ansible","playbook","webapp"],"created_at":"2024-09-25T06:00:47.440Z","updated_at":"2026-02-08T02:07:37.341Z","avatar_url":"https://github.com/Viranson.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Deploy webapp with ansible\n\n## Setup\n- [x] Provision an instance as controller node for Ansible\n- [x] Follow the [**Ansible Installation Guide**](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html) to install and configure ansible on the controller node.\n- [x] Clone this repo : \n```sh\ngit clone https://github.com/Viranson/ansible-deploy-webapp.git \u0026\u0026 cd ansible-deploy-webapp\n```\n - [x] Provision a client Linux host based on CentOS\n - [x]  Install docker and docker-compose\n - [x] On the ansible instance, edit *inventory.yml* file and update the client host IP address on line \"**ansible_host**\"\n - [x] Edit *group_vars/prod.yml* file and update the client host user on line \"**ansible_user**\"\n - [x] Remove files/secrets/credentials.vault\n - [x] Create new file *files/secrets/credentials.vault* and edit with the following content: \n```sh\n---\nansible_password: clientpass\n```\n\u003e Note: *Replace* `clientpass` *with your client instance real password*.\n - [x] Encrypt the credentials file by running : \n```sh\nansible-vault encrypt files/secrets/credentials.vault\n```\nSet your encryption password when it will be prompted.\n\n## deploy simple webapp with ansible\n - [x] Deploy the webapp by running the ansible playbook \"*deploy.yml*\" with the command : \n```sh\nansible-playbook -i inventory.yml --ask-vault-pass deploy.yml\n```\nEnter the client password first then the credentials encryption password when prompted.\n\n## deploy simple webapp with ansible roles\n - [x] Deploy the webapp by running the ansible playbook \"webapp.yml\" with the command : \n```sh\nansible-playbook -i inventory.yml --ask-vault-pass webapp.yml\n```\nEnter the client password first then the credentials encryption password when prompted.\n\n## deploy Wordpress-MySQL stack with ansible roles\n - [x] Edit *wordpress.yml* file and update the client host user on line \"**system_user**\"\n - [x] Deploy the stack by running the ansible playbook \"wordpress.yml\" with the command :\n```sh\nansible-playbook -i inventory.yml --ask-vault-pass wordpress.yml\n```\nEnter the client password first then the credentials encryption password when prompted.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviranson%2Fansible-deploy-webapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviranson%2Fansible-deploy-webapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviranson%2Fansible-deploy-webapp/lists"}