Skip to content

Commit 45596d6

Browse files
author
a.b.christie
committed
style: Space around |
1 parent 7ffd0e5 commit 45596d6

4 files changed

Lines changed: 21 additions & 19 deletions

File tree

roles/core/tasks/deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
kubernetes.core.k8s:
55
definition: "{{ lookup('template', 'pc-im.yaml.j2') }}"
66
wait: yes
7-
when: core_deploy_priority_classes|bool
7+
when: core_deploy_priority_classes | bool
88

99
- name: Install CertManager ClusterIssuer for Let's Encrypt
1010
kubernetes.core.k8s:
@@ -13,4 +13,4 @@
1313
loop:
1414
- clusterissuer-production.yaml.j2
1515
- clusterissuer-staging.yaml.j2
16-
when: core_deploy_cluster_issuer|bool
16+
when: core_deploy_cluster_issuer | bool

roles/core/tasks/main.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
when: core_deploy_cluster_issuer | bool
99

1010
- ansible.builtin.include_tasks: deploy.yaml
11-
when: core_state|string == 'present'
11+
when: core_state | string == 'present'
1212
- ansible.builtin.include_tasks: undeploy.yaml
13-
when: core_state|string == 'absent'
13+
when: core_state | string == 'absent'

roles/infrastructure/tasks/deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,4 +263,4 @@
263263

264264
- name: Deploy RabbitMQ
265265
include_tasks: deploy-rabbitmq.yaml
266-
when: rabbitmq_state|string == 'present'
266+
when: rabbitmq_state | string == 'present'

roles/infrastructure/tasks/main.yaml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@
2727
- name: Assert authentication (no KUBECONFIG)
2828
ansible.builtin.assert:
2929
that:
30-
- k8s_auth_host|length > 0
31-
- k8s_auth_api_key|length > 0
30+
- k8s_auth_host | length > 0
31+
- k8s_auth_api_key | length > 0
3232
msg: "Define KUBECONFIG or set 'k8s_auth_host' and 'k8s_auth_api_key'"
33-
when: k8s_kubeconfig|string|length == 0
33+
when: k8s_kubeconfig | string | length == 0
3434

3535
- name: Assert authentication (KUBECONFIG)
3636
ansible.builtin.assert:
3737
that:
38-
- k8s_auth_host|length == 0
39-
- k8s_auth_api_key|length == 0
40-
when: k8s_kubeconfig|string|length > 0
38+
- k8s_auth_host | length == 0
39+
- k8s_auth_api_key | length == 0
40+
when: k8s_kubeconfig | string | length > 0
4141

4242
# Go...
4343

@@ -46,24 +46,26 @@
4646
group/k8s:
4747
host: "{{ k8s_auth_host }}"
4848
api_key: "{{ k8s_auth_api_key }}"
49-
when: k8s_kubeconfig|string|length == 0
49+
when: k8s_kubeconfig | string | length == 0
5050
block:
5151

5252
- name: Deploy
5353
include_tasks: deploy.yaml
54-
when: infra_state|string == 'present'
54+
when: infra_state | string == 'present'
5555
- name: Undeploy
5656
include_tasks: undeploy.yaml
57-
when: infra_state|string == 'absent'
57+
when: infra_state | string == 'absent'
5858

5959
- name: Deploy (with KUBECONFIG)
6060
module_defaults:
6161
group/k8s:
6262
kubeconfig: "{{ k8s_kubeconfig }}"
63-
when: k8s_kubeconfig|string|length > 0
63+
when: k8s_kubeconfig | string | length > 0
6464
block:
6565

66-
- ansible.builtin.include_tasks: deploy.yaml
67-
when: infra_state|string == 'present'
68-
- ansible.builtin.include_tasks: undeploy.yaml
69-
when: infra_state|string == 'absent'
66+
- name: Deploy
67+
ansible.builtin.include_tasks: deploy.yaml
68+
when: infra_state | string == 'present'
69+
- name: Undeploy
70+
ansible.builtin.include_tasks: undeploy.yaml
71+
when: infra_state | string == 'absent'

0 commit comments

Comments
 (0)