{"id":13753169,"url":"https://github.com/Oefenweb/ansible-wordpress","last_synced_at":"2025-05-09T20:34:55.066Z","repository":{"id":26047171,"uuid":"29490487","full_name":"Oefenweb/ansible-wordpress","owner":"Oefenweb","description":"Ansible role to set up (multiple) wordpress installations in Debian-like systems (using wp-cli)","archived":false,"fork":false,"pushed_at":"2023-11-02T12:16:49.000Z","size":158,"stargazers_count":80,"open_issues_count":11,"forks_count":37,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-07T18:21:13.222Z","etag":null,"topics":["ansible","debian","php","ubuntu","wordpress","wordpress-admin","wordpress-installation"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Oefenweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-01-19T20:10:33.000Z","updated_at":"2025-01-07T15:22:36.000Z","dependencies_parsed_at":"2023-01-14T03:56:12.764Z","dependency_job_id":"ef8ecaa2-ef4e-4a2a-ad1a-b33d3aa6326c","html_url":"https://github.com/Oefenweb/ansible-wordpress","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fansible-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fansible-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fansible-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fansible-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Oefenweb","download_url":"https://codeload.github.com/Oefenweb/ansible-wordpress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253321828,"owners_count":21890474,"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","debian","php","ubuntu","wordpress","wordpress-admin","wordpress-installation"],"created_at":"2024-08-03T09:01:17.580Z","updated_at":"2025-05-09T20:34:50.034Z","avatar_url":"https://github.com/Oefenweb.png","language":"Shell","readme":"## wordpress\n\n[![Build Status](https://travis-ci.org/Oefenweb/ansible-wordpress.svg?branch=master)](https://travis-ci.org/Oefenweb/ansible-wordpress) [![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-wordpress-blue.svg)](https://galaxy.ansible.com/Oefenweb/wordpress)\n\nSet up (multiple) wordpress installations in Debian-like systems (using `wp-cli`).\n\n#### Requirements\n\n* `php` (5.3.2+)\n* `mysql` (5.0+)\n* `apache2` (with `mod_rewrite` enabled)\n\nThis role assumes a working virtual host (that handles `wordpress_url`).\n\n#### Variables\n\n* `wordpress_wp_cli_install_dir` [default: `/usr/local/bin`]: Install directory for `wp-cli`\n\n* `wordpress_installs`: [default: `[]`]: Installation declarations\n* `wordpress_installs.{n}.name`: [required]: Install name (not used for anything, just an identifier)\n* `wordpress_installs.{n}.dbname`: [required]: Database name\n* `wordpress_installs.{n}.dbuser`: [required]: Database username\n* `wordpress_installs.{n}.dbpass`: [required]: Database password (**make sure to change**)\n* `wordpress_installs.{n}.dbhost`: [default: `localhost`, optional]: Database host\n* `wordpress_installs.{n}.dbprefix`: [default: `wp_`, optional]: Prefix for database tables\n* `wordpress_installs.{n}.path`: [required]: Install directory for wordpress\n* `wordpress_installs.{n}.locale`: [default: `en_US`, optional]: Language of the downloaded Wordpress\n* `wordpress_installs.{n}.owner`: [default: `www-data`]: The name of the user that should own the install\n* `wordpress_installs.{n}.group`: [default: `owner`, `www-data`]: The name of the group that should own the install\n* `wordpress_installs.{n}.url`: [required]: Wordpress url\n* `wordpress_installs.{n}.title`: [required]: Wordpress title\n* `wordpress_installs.{n}.admin_name`: [default: `admin`, optional]: Wordpress admin (user)name\n* `wordpress_installs.{n}.admin_email`: [required]: Wordpress admin email address\n* `wordpress_installs.{n}.admin_password`: [required]: Wordpress admin password (**make sure to change**)\n\n* `wordpress_installs.{n}.cron`: [optional]: Cron declaration\n* `wordpress_installs.{n}.cron.use_crond`: [default: `false`]: Whether or not to use `crond` instead of wp-cron\n* `wordpress_installs.{n}.cron.user`: [default: `www-data`]: User to run job as\n* `wordpress_installs.{n}.cron.schedule`: [optional]: Cron schedule declaration\n* `wordpress_installs.{n}.cron.schedule.day`: [default: `*`]: Day when the job should run\n* `wordpress_installs.{n}.cron.schedule.hour`: [default: `*`]: Hour when the job should run\n* `wordpress_installs.{n}.cron.schedule.minute`: [default: `*`]: Minute when the job should run\n* `wordpress_installs.{n}.cron.schedule.month`: [default: `*`]: Month when the job should run\n* `wordpress_installs.{n}.cron.schedule.weekday`: [default: `*`]: Weekday when the job should run\n\n* `wordpress_installs.{n}.themes`: [required]: (Additional) themes to install (and activate)\n* `wordpress_installs.{n}.themes.{n}.name`: [required]: Name of the theme\n* `wordpress_installs.{n}.themes.{n}.activate`: [default: `false`, optional]: Whether or not to activate the theme\n\n* `wordpress_installs.{n}.plugins`: [required]: (Additional) plugins to install (and activate)\n* `wordpress_installs.{n}.plugins.{n}.name`: [required]: Name of the plugin\n* `wordpress_installs.{n}.plugins.{n}.zip`: [optional]: Zip of the plugin\n* `wordpress_installs.{n}.plugins.{n}.url`: [optional]: Url of the plugin\n* `wordpress_installs.{n}.plugins.{n}.activate`: [default: `true`, optional]: Whether to activate or to deactivate the plugin\n* `wordpress_installs.{n}.plugins.{n}.force`: [default: `false`, optional]: Whether or not to add the `--force` option during install\n\n* `wordpress_installs.{n}.users`: [optional]: User declarations\n* `wordpress_installs.{n}.users.src`: [required]: The local path of the [csv file](http://wp-cli.org/commands/user/import-csv/) to import, can be absolute or relative (e.g. `../../../files/wordpress/users.csv`)\n* `wordpress_installs.{n}.users.skip_update`: [default: `true`, optional]: Whether or not to update users that already exist\n\n* `wordpress_installs.{n}.options`: [required]: Options to add, update or delete\n* `wordpress_installs.{n}.options.{n}.command`: [required]: Add, update or delete\n* `wordpress_installs.{n}.options.{n}.name`: [required]: Name of the option\n* `wordpress_installs.{n}.options.{n}.value`: [required]: Value of the option\n* `wordpress_installs.{n}.options.{n}.autoload`: [default: `true`, optional]: Whether this option should be automatically loaded (only supported for add command)\n\n* `wordpress_installs.{n}.queries`: [default: `[]`, optional]: A list of queries to execute\n\n## Dependencies\n\nNone\n\n## Examples\n\n### Quickstart\n\n```yaml\n---\n- hosts: all\n  roles:\n    - oefenweb.wordpress\n  vars:\n    wordpress_installs:\n      - name: wordpress\n        dbname: wordpress\n        dbuser: wordpress\n        dbpass: 'heCrE7*d2KEs'\n        dbhost: localhost\n        path: /var/www\n        url: http://localhost\n        title: wordpress\n        admin_name: admin\n        admin_email: root@localhost.localdomain\n        admin_password: 'tuFr8=aPra@a'\n        themes:\n          - name: twentytwelve\n            activate: true\n          - name: twentythirteen\n        plugins:\n          - name: contact-form-7\n            activate: false\n          - name: simple-fields\n        users: {}\n        options: []\n        queries: []\n```\n\n### Using options:\n\n\n```yaml\n---\n- hosts: all\n  roles:\n    - oefenweb.wordpress\n  vars:\n    wordpress_installs:\n      - name: wordpress\n        dbname: wordpress\n        dbuser: wordpress\n        dbpass: 'heCrE7*d2KEs'\n        dbhost: localhost\n        path: /var/www\n        url: http://localhost\n        title: wordpress\n        admin_name: admin\n        admin_email: root@localhost.localdomain\n        admin_password: 'tuFr8=aPra@a'\n        themes:\n          - name: twentytwelve\n            activate: true\n          - name: twentythirteen\n        plugins:\n          - name: contact-form-7\n            activate: false\n          - name: simple-fields\n        users: {}\n        options:\n          - name: woocommerce_api_enabled\n            command: update\n            value: yes\n          - name: swoocommerce_email_from_name\n            command: update\n            vakue: payments@mycompany.com\n          - name: woocommerce_currency\n            command: update\n            vakue: MXN\n        queries: []\n```\n\n#### License\n\nMIT\n\n#### Author Information\n\nMischa ter Smitten\n\n#### Feedback, bug-reports, requests, ...\n\nAre [welcome](https://github.com/Oefenweb/ansible-wordpress/issues)!\n","funding_links":[],"categories":["wordpress"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOefenweb%2Fansible-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOefenweb%2Fansible-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOefenweb%2Fansible-wordpress/lists"}