Skip to content

Commit 47da6b5

Browse files
committed
Consistency changes
1 parent 5e819f6 commit 47da6b5

14 files changed

Lines changed: 73 additions & 52 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Check out the codebase
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v5
1919

2020
- name: Set up Python 3
21-
uses: actions/setup-python@v4
21+
uses: actions/setup-python@v6
2222
with:
23-
python-version: '3.x'
23+
python-version: '3 - 3.13'
2424

2525
- name: Install test dependencies
2626
run: |
@@ -44,25 +44,29 @@ jobs:
4444
fail-fast: false
4545
matrix:
4646
include:
47-
- distro: ubuntu1604
48-
ansible-version: '>=2.10, <2.11'
49-
- distro: ubuntu1604
47+
- distro: debian11
48+
- distro: debian12
5049
- distro: ubuntu1804
50+
ansible-version: '>=9, <10'
5151
- distro: ubuntu2004
52+
ansible-version: '>=12, <13'
53+
- distro: ubuntu2204
54+
- distro: ubuntu2404
5255

5356
steps:
5457
- name: Check out the codebase
55-
uses: actions/checkout@v3
58+
uses: actions/checkout@v5
5659
with:
5760
path: "${{ github.repository }}"
5861

5962
- name: Set up Python 3
60-
uses: actions/setup-python@v4
63+
uses: actions/setup-python@v6
6164
with:
62-
python-version: '3.x'
65+
python-version: '3 - 3.13'
6366

6467
- name: Install test dependencies
65-
run: pip install 'ansible${{ matrix.ansible-version }}' molecule-plugins[docker] docker
68+
run: |
69+
pip install 'ansible${{ matrix.ansible-version }}' molecule-plugins[docker] docker
6670
6771
- name: Run Molecule tests
6872
run: |

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Check out the codebase
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v5
1616

1717
- name: Publish to Galaxy
1818
uses: robertdebock/galaxy-action@1.2.0

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![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)
44

5-
Set up (multiple) wordpress installations in Debian-like systems (using `wp-cli`).
5+
Set up (multiple) WordPress installations in Debian-like systems (using `wp-cli`).
66

77
#### Requirements
88

@@ -23,18 +23,18 @@ This role assumes a working virtual host (that handles `wordpress_url`).
2323
* `wordpress_installs.{n}.dbpass`: [required]: Database password (**make sure to change**)
2424
* `wordpress_installs.{n}.dbhost`: [default: `localhost`, optional]: Database host
2525
* `wordpress_installs.{n}.dbprefix`: [default: `wp_`, optional]: Prefix for database tables
26-
* `wordpress_installs.{n}.path`: [required]: Install directory for wordpress
27-
* `wordpress_installs.{n}.locale`: [default: `en_US`, optional]: Language of the downloaded Wordpress
26+
* `wordpress_installs.{n}.path`: [required]: Install directory for WordPress
27+
* `wordpress_installs.{n}.locale`: [default: `en_US`, optional]: Language of the downloaded WordPress
2828
* `wordpress_installs.{n}.owner`: [default: `www-data`]: The name of the user that should own the install
2929
* `wordpress_installs.{n}.group`: [default: `owner`, `www-data`]: The name of the group that should own the install
30-
* `wordpress_installs.{n}.url`: [required]: Wordpress url
31-
* `wordpress_installs.{n}.title`: [required]: Wordpress title
32-
* `wordpress_installs.{n}.admin_name`: [default: `admin`, optional]: Wordpress admin (user)name
33-
* `wordpress_installs.{n}.admin_email`: [required]: Wordpress admin email address
34-
* `wordpress_installs.{n}.admin_password`: [required]: Wordpress admin password (**make sure to change**)
30+
* `wordpress_installs.{n}.url`: [required]: WordPress url
31+
* `wordpress_installs.{n}.title`: [required]: WordPress title
32+
* `wordpress_installs.{n}.admin_name`: [default: `admin`, optional]: WordPress admin (user)name
33+
* `wordpress_installs.{n}.admin_email`: [required]: WordPress admin email address
34+
* `wordpress_installs.{n}.admin_password`: [required]: WordPress admin password (**make sure to change**)
3535

3636
* `wordpress_installs.{n}.cron`: [optional]: Cron declaration
37-
* `wordpress_installs.{n}.cron.use_crond`: [default: `false`]: Whether or not to use `crond` instead of wp-cron
37+
* `wordpress_installs.{n}.cron.use_crond`: [default: `false`]: Whether to use `crond` instead of wp-cron
3838
* `wordpress_installs.{n}.cron.user`: [default: `www-data`]: User to run job as
3939
* `wordpress_installs.{n}.cron.schedule`: [optional]: Cron schedule declaration
4040
* `wordpress_installs.{n}.cron.schedule.day`: [default: `*`]: Day when the job should run
@@ -45,18 +45,18 @@ This role assumes a working virtual host (that handles `wordpress_url`).
4545

4646
* `wordpress_installs.{n}.themes`: [required]: (Additional) themes to install (and activate)
4747
* `wordpress_installs.{n}.themes.{n}.name`: [required]: Name of the theme
48-
* `wordpress_installs.{n}.themes.{n}.activate`: [default: `false`, optional]: Whether or not to activate the theme
48+
* `wordpress_installs.{n}.themes.{n}.activate`: [default: `false`, optional]: Whether to activate the theme
4949

5050
* `wordpress_installs.{n}.plugins`: [required]: (Additional) plugins to install (and activate)
5151
* `wordpress_installs.{n}.plugins.{n}.name`: [required]: Name of the plugin
5252
* `wordpress_installs.{n}.plugins.{n}.zip`: [optional]: Zip of the plugin
5353
* `wordpress_installs.{n}.plugins.{n}.url`: [optional]: Url of the plugin
5454
* `wordpress_installs.{n}.plugins.{n}.activate`: [default: `true`, optional]: Whether to activate or to deactivate the plugin
55-
* `wordpress_installs.{n}.plugins.{n}.force`: [default: `false`, optional]: Whether or not to add the `--force` option during install
55+
* `wordpress_installs.{n}.plugins.{n}.force`: [default: `false`, optional]: Whether to add the `--force` option during install
5656

5757
* `wordpress_installs.{n}.users`: [optional]: User declarations
5858
* `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`)
59-
* `wordpress_installs.{n}.users.skip_update`: [default: `true`, optional]: Whether or not to update users that already exist
59+
* `wordpress_installs.{n}.users.skip_update`: [default: `true`, optional]: Whether to update users that already exist
6060

6161
* `wordpress_installs.{n}.options`: [required]: Options to add, update or delete
6262
* `wordpress_installs.{n}.options.{n}.command`: [required]: Add, update or delete

Vagrantfile

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,46 @@
44
role = File.basename(File.expand_path(File.dirname(__FILE__)))
55

66
boxes = [
7-
{
8-
:name => "ubuntu-1604",
9-
:box => "bento/ubuntu-16.04",
10-
:ip => '10.0.0.13',
11-
:cpu => "50",
12-
:ram => "256"
13-
},
147
{
158
:name => "ubuntu-1804",
169
:box => "bento/ubuntu-18.04",
17-
:ip => '10.0.0.14',
10+
:ip => '10.0.0.13',
1811
:cpu => "50",
1912
:ram => "384"
2013
},
2114
{
2215
:name => "ubuntu-2004",
2316
:box => "bento/ubuntu-20.04",
17+
:ip => '10.0.0.14',
18+
:cpu => "50",
19+
:ram => "512"
20+
},
21+
{
22+
:name => "ubuntu-2204",
23+
:box => "bento/ubuntu-22.04",
2424
:ip => '10.0.0.15',
2525
:cpu => "50",
26+
:ram => "512"
27+
},
28+
{
29+
:name => "ubuntu-2404",
30+
:box => "bento/ubuntu-24.04",
31+
:ip => '10.0.0.16',
32+
:cpu => "50",
33+
:ram => "512"
34+
},
35+
{
36+
:name => "debian-11",
37+
:box => "bento/debian-11",
38+
:ip => '10.0.0.19',
39+
:cpu => "50",
40+
:ram => "256"
41+
},
42+
{
43+
:name => "debian-12",
44+
:box => "bento/debian-12",
45+
:ip => '10.0.0.20',
46+
:cpu => "50",
2647
:ram => "384"
2748
},
2849
]

meta/main.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,14 @@ galaxy_info:
1111
platforms:
1212
- name: Ubuntu
1313
versions:
14-
- precise
15-
- trusty
16-
- xenial
1714
- bionic
15+
- focal
16+
- jammy
17+
- noble
1818
- name: Debian
1919
versions:
20-
- wheezy
21-
- jessie
22-
- stretch
23-
- buster
20+
- bullseye
21+
- bookworm
2422
galaxy_tags:
2523
- web
2624
dependencies: []

molecule/default/collections.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
11
---
2-
collections:
3-
- name: community.docker
4-
version: '>=1.2.0,<2'
5-
- name: community.general
6-
version: '>=2,<3'
2+
collections: []

molecule/default/molecule.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ driver:
55
name: docker
66
platforms:
77
- name: instance
8-
image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu1604}-ansible:latest"
8+
image: "geerlingguy/docker-${MOLECULE_DISTRO:-ubuntu2004}-ansible:latest"
99
command: ${MOLECULE_DOCKER_COMMAND:-""}
1010
volumes:
1111
- /sys/fs/cgroup:/sys/fs/cgroup:rw

tasks/configure.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
state: directory
77
owner: root
88
group: root
9-
mode: 0755
9+
mode: '0755'
1010
with_items:
1111
- "{{ wordpress_data_path }}/themes"
1212
- "{{ wordpress_data_path }}/plugins"

tasks/plugins.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
dest: "{{ wordpress_data_path }}/plugins/{{ item.item.1.name }}.zip"
3535
owner: root
3636
group: root
37-
mode: 0644
37+
mode: '0644'
3838
with_items: "{{ _check_installation_plugins.results | default([]) }}"
3939
when:
4040
- item.item.1.name

tasks/users.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
dest: "{{ wordpress_data_path }}/users/{{ item.dbname }}.csv"
77
owner: root
88
group: root
9-
mode: 0644
9+
mode: '0644'
1010
register: _check_copy_users
1111
with_items: "{{ wordpress_installs }}"
1212
when: item.users.src is defined

0 commit comments

Comments
 (0)