aboutsummaryrefslogtreecommitdiff
path: root/ansible
diff options
context:
space:
mode:
authorMichal Nasiadka <mnasiadka@gmail.com>2025-11-12 15:11:23 +0100
committerMichal Nasiadka <mnasiadka@gmail.com>2025-11-24 16:02:03 +0000
commitc16eb15be7b02c313ceddb1c220be2fc24e5db57 (patch)
tree789fbc5ebb7e230f01019c72b1d637a555fc5049 /ansible
parentec72553d007395739435a885fd9b52388170aa41 (diff)
downloadkolla-ansible-c16eb15be7b02c313ceddb1c220be2fc24e5db57.tar.gz
kolla-ansible-c16eb15be7b02c313ceddb1c220be2fc24e5db57.zip
ansible-lint: Fix yaml[truthy] in zun role
Change-Id: I53d4e293ab946bbef7ae9ee70869411a9e2e20cc Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/zun/defaults/main.yml4
-rw-r--r--ansible/roles/zun/tasks/bootstrap.yml4
-rw-r--r--ansible/roles/zun/tasks/bootstrap_service.yml4
-rw-r--r--ansible/roles/zun/tasks/config.yml2
-rw-r--r--ansible/roles/zun/tasks/external_ceph.yml2
-rw-r--r--ansible/roles/zun/tasks/precheck.yml2
6 files changed, 9 insertions, 9 deletions
diff --git a/ansible/roles/zun/defaults/main.yml b/ansible/roles/zun/defaults/main.yml
index 094f40fbe..c418f88b0 100644
--- a/ansible/roles/zun/defaults/main.yml
+++ b/ansible/roles/zun/defaults/main.yml
@@ -50,7 +50,7 @@ zun_services:
group: zun-compute
enabled: true
image: "{{ zun_compute_image_full }}"
- privileged: True
+ privileged: true
volumes: "{{ zun_compute_default_volumes + zun_compute_extra_volumes + lookup('vars', 'run_default_volumes_' + kolla_container_engine) }}"
dimensions: "{{ zun_compute_dimensions }}"
healthcheck: "{{ zun_compute_healthcheck }}"
@@ -59,7 +59,7 @@ zun_services:
group: zun-cni-daemon
enabled: true
image: "{{ zun_cni_daemon_image_full }}"
- privileged: True
+ privileged: true
volumes: "{{ zun_cni_daemon_default_volumes + zun_cni_daemon_extra_volumes + lookup('vars', 'run_default_volumes_' + kolla_container_engine) }}"
dimensions: "{{ zun_cni_daemon_dimensions }}"
healthcheck: "{{ zun_cni_daemon_healthcheck }}"
diff --git a/ansible/roles/zun/tasks/bootstrap.yml b/ansible/roles/zun/tasks/bootstrap.yml
index a18acdea7..3ec453be6 100644
--- a/ansible/roles/zun/tasks/bootstrap.yml
+++ b/ansible/roles/zun/tasks/bootstrap.yml
@@ -11,7 +11,7 @@
login_user: "{{ zun_database_shard_root_user }}"
login_password: "{{ database_password }}"
name: "{{ zun_database_name }}"
- run_once: True
+ run_once: true
delegate_to: "{{ groups['zun-api'][0] }}"
when:
- not use_preconfigured_databases | bool
@@ -32,7 +32,7 @@
host: "%"
priv: "{{ zun_database_name }}.*:ALL"
append_privs: "yes"
- run_once: True
+ run_once: true
delegate_to: "{{ groups['zun-api'][0] }}"
when:
- not use_preconfigured_databases | bool
diff --git a/ansible/roles/zun/tasks/bootstrap_service.yml b/ansible/roles/zun/tasks/bootstrap_service.yml
index d618b07c2..b68dc002a 100644
--- a/ansible/roles/zun/tasks/bootstrap_service.yml
+++ b/ansible/roles/zun/tasks/bootstrap_service.yml
@@ -6,7 +6,7 @@
kolla_container:
action: "start_container"
common_options: "{{ docker_common_options }}"
- detach: False
+ detach: false
environment:
KOLLA_BOOTSTRAP:
KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
@@ -16,5 +16,5 @@
name: "bootstrap_zun"
restart_policy: oneshot
volumes: "{{ zun_api.volumes | reject('equalto', '') | list }}"
- run_once: True
+ run_once: true
delegate_to: "{{ groups[zun_api.group][0] }}"
diff --git a/ansible/roles/zun/tasks/config.yml b/ansible/roles/zun/tasks/config.yml
index 7ef4c7e3b..850f353d7 100644
--- a/ansible/roles/zun/tasks/config.yml
+++ b/ansible/roles/zun/tasks/config.yml
@@ -17,7 +17,7 @@
- name: Check if policies shall be overwritten
stat:
path: "{{ item }}"
- run_once: True
+ run_once: true
delegate_to: localhost
register: zun_policy
with_first_found:
diff --git a/ansible/roles/zun/tasks/external_ceph.yml b/ansible/roles/zun/tasks/external_ceph.yml
index e57410b6b..1afe869cf 100644
--- a/ansible/roles/zun/tasks/external_ceph.yml
+++ b/ansible/roles/zun/tasks/external_ceph.yml
@@ -18,6 +18,6 @@
become: true
file:
path: "{{ node_config_directory }}/zun-compute"
- recurse: yes
+ recurse: true
owner: "{{ config_owner_user }}"
group: "{{ config_owner_group }}"
diff --git a/ansible/roles/zun/tasks/precheck.yml b/ansible/roles/zun/tasks/precheck.yml
index 780a78aa0..cd727ebe3 100644
--- a/ansible/roles/zun/tasks/precheck.yml
+++ b/ansible/roles/zun/tasks/precheck.yml
@@ -54,6 +54,6 @@
assert:
that: enable_kuryr | bool
fail_msg: "kuryr is required but not enabled"
- run_once: True
+ run_once: true
when:
- enable_zun | bool