{"id":20424604,"url":"https://github.com/madfxr/ansible-lamp-wordpress","last_synced_at":"2026-01-23T06:20:36.546Z","repository":{"id":114164045,"uuid":"141429078","full_name":"madfxr/ansible-lamp-wordpress","owner":"madfxr","description":"Ansible Playbook for Automation Installation \u0026 Configuration LAMP (Linux Apache MariaDB PHP) + CMS WordPress","archived":false,"fork":false,"pushed_at":"2025-07-07T16:25:08.000Z","size":39,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-07T17:40:44.281Z","etag":null,"topics":["ansible","ansible-playbook","apache","automation","devops","lamp","linux","mariadb","php","wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/madfxr.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,"zenodo":null}},"created_at":"2018-07-18T12:02:49.000Z","updated_at":"2025-07-07T16:25:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"e674a062-3552-4d28-9d16-99625499eb07","html_url":"https://github.com/madfxr/ansible-lamp-wordpress","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/madfxr/ansible-lamp-wordpress","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madfxr%2Fansible-lamp-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madfxr%2Fansible-lamp-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madfxr%2Fansible-lamp-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madfxr%2Fansible-lamp-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madfxr","download_url":"https://codeload.github.com/madfxr/ansible-lamp-wordpress/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madfxr%2Fansible-lamp-wordpress/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28682259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: 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","ansible-playbook","apache","automation","devops","lamp","linux","mariadb","php","wordpress"],"created_at":"2024-11-15T07:10:12.651Z","updated_at":"2026-01-23T06:20:36.527Z","avatar_url":"https://github.com/madfxr.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Playbook for Automation Installation \u0026 Configuration LAMP (Linux Apache MariaDB PHP) + CMS WordPress\n\nAutomate installation \u0026 configuration of CentOS Server with software package specification LAMP (Linux Apache MariaDB PHP).\n\n## Requirements\n- Git.\n- Ansible 2+.\n\n## Installation\nFirst, you need to install Git and Ansible first in the master and the following commands you can follow:\n\n```\nyum install epel-release -y\nyum update -y\nyum install git ansible -y\n```\n\nAfter that, clone the required repository:\n\n```\ncd /opt/\ngit clone https://github.com/madfxr/ansible-lamp-wordpress.git\n```\n\nTo see which version of Ansible is installed, type the following command:\n\n```\nansible --version\n```\n\nThe next step is to generate the SSH Key, this is done to generate the Private Key and Public Key which will be used as the authentication of the search for communication between two or more hosts, the following commands are:\n\n```\nssh-keygen -t rsa -b 4096\n```\n\nMake changes to the host according to your needs:\n\n```\nvi /etc/ansible/hosts\n```\n\nand add the following line of code below:\n\n```\n[ansiblehost]\n192.168.1.1\n```\n\nThe next process is to authenticate login on host 192.168.1.1, and following the command:\n\n```\nssh-copy-id root@192.168.1.1\n```\n\nTo perform connection checks on previously added hosts, run the following commands:\n\n```\nansible -m ping ansiblehost\n```\n\nTo install packages and configure LAMP (Linux Apache MariaDB PHP) + CMS Wordpress, run the following command:\n\n```\nansible-playbook /opt/ansible-lamp-wordpress/roles/install-lamp-wordpress.yml\n```\n\nTo remove packages and configuration files LAMP (Linux Apache MariaDB PHP) + CMS WordPress, run the following command:\n\n```\nansible-playbook /opt/ansible-lamp-wordpress/roles/erase-lamp-wordpress.yml\n```\n\n## Notes\n- Ansible Playbook is still tried on CentOS 7 x86_64 only.\n- If you are using another operating system, feel free to make changes to an existing role.\n- To make changes to the Ansible configuration file, you can change the following files:\n\n```\n/etc/ansible/hosts\n/opt/ansible-lamp-wordpress/.my.cnf\n/opt/ansible-lamp-wordpress/wp-config-sample.php\n/opt/ansible-lamp-wordpress/roles/erase-lamp-wordpress.yml\n/opt/ansible-lamp-wordpress/roles/install-lamp-wordpress.yml\n/opt/ansible-lamp-wordpress/roles/wp-dependencies/defaults/main.yml\n/opt/ansible-lamp-wordpress/roles/wp-dependencies/tasks/main.yml\n/opt/ansible-lamp-wordpress/roles/wp-install-config/tasks/main.yml\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadfxr%2Fansible-lamp-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadfxr%2Fansible-lamp-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadfxr%2Fansible-lamp-wordpress/lists"}