From b64ebe929ca5dbe03b5deed0b6bb68fddbeb7d1b Mon Sep 17 00:00:00 2001 From: Lucas Bremgartner Date: Tue, 27 May 2025 21:11:28 +0200 Subject: [PATCH 1/3] Include roles from repository Make the ansible playbook work without the need to install it as collection with Ansible Galaxy. Signed-off-by: Lucas Bremgartner --- ansible/ansible.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/ansible.cfg b/ansible/ansible.cfg index cb7ef5a4..541da7e3 100644 --- a/ansible/ansible.cfg +++ b/ansible/ansible.cfg @@ -4,5 +4,7 @@ error_on_undefined_vars = false timeout = 30 forks = 10 +roles_path = ../roles + [inventory] enable_plugins = yaml From 8ff6b11578767028264597e885a1cc21818f61c7 Mon Sep 17 00:00:00 2001 From: Lucas Bremgartner Date: Tue, 27 May 2025 21:12:21 +0200 Subject: [PATCH 2/3] Fix ceph bind if ceph_ip_address is given Fixes: #44 Signed-off-by: Lucas Bremgartner --- roles/ceph/templates/ceph.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph/templates/ceph.conf.j2 b/roles/ceph/templates/ceph.conf.j2 index 56dbb7f1..0c91f3f8 100644 --- a/roles/ceph/templates/ceph.conf.j2 +++ b/roles/ceph/templates/ceph.conf.j2 @@ -13,7 +13,7 @@ public_network = {{ ceph_network_public }} private_network = {{ ceph_network_private }} {% endif %} auth allow insecure global id reclaim = false -{% if ansible_default_ipv6['address'] | default("") %} +{% if ceph_ip_address | default(ansible_default_ipv6['address'] | default('')) | ansible.utils.ipv6 %} ms bind ipv6 = true ms bind ipv4 = false {% else %} From df6873ecb74a7eefc61c2d9b3ef6c13774d21293 Mon Sep 17 00:00:00 2001 From: Lucas Bremgartner Date: Fri, 11 Jul 2025 22:03:34 +0200 Subject: [PATCH 3/3] Add ansible-lint config to skip var-naming[no-role-prefix] errors Signed-off-by: Lucas Bremgartner --- .ansible-lint.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .ansible-lint.yml diff --git a/.ansible-lint.yml b/.ansible-lint.yml new file mode 100644 index 00000000..1bc5a52c --- /dev/null +++ b/.ansible-lint.yml @@ -0,0 +1,4 @@ +--- + +skip_list: + - var-naming[no-role-prefix]