@@ -106,14 +106,14 @@ An example Watches file:
106
106
- version : v1alpha1
107
107
group : bar.example.com
108
108
kind : Bar
109
- playbook : /opt/ansible/playbook.yaml
109
+ playbook : /opt/ansible/playbook.yml
110
110
111
111
# More complex example for our Baz kind
112
112
# Here we will disable requeuing and be managing the CR status in the playbook
113
113
- version : v1alpha1
114
114
group : baz.example.com
115
115
kind : Baz
116
- playbook : /opt/ansible/baz.yaml
116
+ playbook : /opt/ansible/baz.yml
117
117
reconcilePeriod : 0
118
118
manageStatus : false
119
119
` ` `
@@ -149,7 +149,7 @@ should go.
149
149
- version: v1alpha1
150
150
group: cache.example.com
151
151
kind: Memcached
152
- role: /opt/ansible/roles/Memcached
152
+ role: /opt/ansible/roles/memcached
153
153
` ` `
154
154
155
155
**Playbook**
@@ -167,7 +167,7 @@ Playbook
167
167
# # Building the Memcached Ansible Role
168
168
169
169
The first thing to do is to modify the generated Ansible role under
170
- ` roles/Memcached ` . This Ansible Role controls the logic that is executed when a
170
+ ` roles/memcached ` . This Ansible Role controls the logic that is executed when a
171
171
resource is modified.
172
172
173
173
# ## Define the Memcached spec
@@ -183,7 +183,7 @@ It is recommended that you perform some type validation in Ansible on the
183
183
variables to ensure that your application is receiving expected input.
184
184
185
185
First, set a default in case the user doesn't set the `spec` field by modifying
186
- `roles/Memcached /defaults/main.yml` :
186
+ `roles/memcached /defaults/main.yml` :
187
187
` ` ` yaml
188
188
size: 1
189
189
` ` `
@@ -192,13 +192,13 @@ size: 1
192
192
193
193
Now that we have the spec defined, we can define what Ansible is actually
194
194
executed on resource changes. Since this is an Ansible Role, the default
195
- behavior will be to execute the tasks in `roles/Memcached /tasks/main.yml`. We
195
+ behavior will be to execute the tasks in `roles/memcached /tasks/main.yml`. We
196
196
want Ansible to create a deployment if it does not exist which runs the
197
197
` memcached:1.4.36-alpine` image. Ansible 2.5+ supports the [k8s Ansible
198
198
Module](https://docs.ansible.com/ansible/2.6/modules/k8s_module.html) which we
199
199
will leverage to control the deployment definition.
200
200
201
- Modify `roles/Memcached /tasks/main.yml` to look like the following :
201
+ Modify `roles/memcached /tasks/main.yml` to look like the following :
202
202
` ` ` yaml
203
203
---
204
204
- name: start memcached
0 commit comments