# centos-ansible-wordpress **Repository Path**: 1091198228/centos-ansible-wordpress ## Basic Information - **Project Name**: centos-ansible-wordpress - **Description**: centos ansible wordpress - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-12-31 - **Last Updated**: 2025-12-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CentOS-Ansible-WordPress This project provides an Ansible-based solution for automating the deployment of WordPress on CentOS-based server systems. ## Project Overview This project is an Ansible playbook designed to automate the deployment of a WordPress environment on CentOS systems. It includes all necessary configuration files and tasks for installing and configuring the database, Nginx, PHP, and WordPress. ## Features - Automatic installation and configuration of Nginx - Automatic installation and configuration of PHP - Automatic installation and configuration of MySQL/MariaDB database - Automatic download and deployment of WordPress (Chinese version) - Template files provided to adapt to server environments ## Directory Structure - `ansible.cfg`: Main Ansible configuration file - `hosts`: Target server inventory file - `roles/`: Ansible roles directory containing the following subdirectories: - `database/`: Database-related tasks - `nginx/`: Nginx installation and configuration - `php/`: PHP installation and configuration - `wordpress/`: WordPress deployment tasks and files - `wp_deploy.yml`: Main playbook file to initiate the deployment process ## Usage Instructions 1. Ensure the target server is running CentOS and Ansible is installed. 2. Modify the `hosts` file to configure the target server information. 3. Adjust the configuration files for each role as needed, such as `roles/nginx/templates/nginx.conf.j2` and `roles/wordpress/templates/wp-config.php.j2`. 4. Execute the main playbook to start the deployment: ```bash ansible-playbook wp_deploy.yml ``` ## Notes - Ensure the server has network access prior to deployment to download WordPress and its dependencies. - The project includes `.rpmnew` files, which are backup files generated by Ansible during configuration file management. These can be compared or replaced as needed. ## License This project is licensed under the MIT License. For more details, see the LICENSE file in the repository. --- If you have any questions or suggestions, please feel free to open an issue or submit a PR on Gitee!