Run prettier on all *.md files

```
prettier '{app,source}/**/**.md' --write
```
This commit is contained in:
Oliver Davies 2020-03-08 17:52:59 +00:00
parent a3ceeaf0f3
commit 85a10c545b
170 changed files with 5127 additions and 2282 deletions

View file

@ -1,18 +1,30 @@
---
title: Test Driven Ansible Role Development with Molecule
date: 2019-06-02
excerpt: Some resources that I found for testing Ansible roles with a tool called Molecule.
excerpt:
Some resources that I found for testing Ansible roles with a tool called
Molecule.
tags: [ansible, molecule, testing, video]
---
I used to maintain a number of [Ansible roles][roles], and I recently wrote one for automatically generating `settings.php` files for Drupal projects that I use for some client projects as part of the [Ansible and Ansistrano deployment process][talk], as it can populate these files with credentials stored in Ansible Vault.
I uploaded an initial version of the role [onto GitHub][github], but havent yet released it onto Ansible Galaxy.
I used to maintain a number of [Ansible roles][roles], and I recently wrote one
for automatically generating `settings.php` files for Drupal projects that I use
for some client projects as part of the [Ansible and Ansistrano deployment
process][talk], as it can populate these files with credentials stored in
Ansible Vault.
Id seen in other peoples roles and read elsewhere about writing automated tests for Ansible roles using a tool called [Molecule][molecule], and wanted to write some tests for this role before publishing it onto Galaxy.
I uploaded an initial version of the role [onto GitHub][github], but havent yet
released it onto Ansible Galaxy.
I looked around for resources about Molecule, and found a [blog post by Jeff Geerling][jeff-post], but also this YouTube video that I found very helpful.
Id seen in other peoples roles and read elsewhere about writing automated
tests for Ansible roles using a tool called [Molecule][molecule], and wanted to
write some tests for this role before publishing it onto Galaxy.
Ive since been re-writing the role from scratch based on Molecule, and plan to release an official version of it soon.
I looked around for resources about Molecule, and found a [blog post by Jeff
Geerling][jeff-post], but also this YouTube video that I found very helpful.
Ive since been re-writing the role from scratch based on Molecule, and plan to
release an official version of it soon.
{% include 'video-embed' with {
classes: 'video-full',
@ -26,7 +38,9 @@ Ive since been re-writing the role from scratch based on Molecule, and plan t
} %}
[github]: https://github.com/opdavies/ansible-role-drupal-settings
[jeff-post]: https://www.jeffgeerling.com/blog/2018/testing-your-ansible-roles-molecule
[jeff-post]:
https://www.jeffgeerling.com/blog/2018/testing-your-ansible-roles-molecule
[molecule]: https://molecule.readthedocs.io
[roles]: https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html
[roles]:
https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html
[talk]: /talks/deploying-php-ansible-ansistrano