I just did this for Ansible for Kubernetes, but I want to do it for Ansible for DevOps just to make sure I'm consistent across both books.
I have code examples formatted like so right now:
{lang="text",linenos=off}
handlers:
- name: restart apache
service: name=apache2 state=restarted
tasks:
- name: Enable Apache rewrite module.
apache2_module: name=rewrite state=present
notify: restart apache
But I can use the more simplified method in LeanPub's Markua syntax, allowing easier translation between book text and examples/playbooks:
{lang="text",linenos=off}
```
handlers:
- name: restart apache
service: name=apache2 state=restarted
tasks:
- name: Enable Apache rewrite module.
apache2_module: name=rewrite state=present
notify: restart apache
```
Checklist:
I just did this for Ansible for Kubernetes, but I want to do it for Ansible for DevOps just to make sure I'm consistent across both books.
I have code examples formatted like so right now:
But I can use the more simplified method in LeanPub's Markua syntax, allowing easier translation between book text and examples/playbooks:
Checklist: