From e6804490a51a529615609c843450a66cc15e5e0f Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Fri, 9 Feb 2024 08:37:23 -0500 Subject: [PATCH] fix: ensure user and group is string Signed-off-by: Chris Gianelloni --- roles/cardano_db_sync/tasks/main.yml | 4 ++-- roles/cardano_node/tasks/main.yml | 16 ++++++++-------- roles/cardano_node_api/tasks/main.yml | 4 ++-- roles/kupo/tasks/main.yml | 4 ++-- roles/ogmios/tasks/main.yml | 4 ++-- roles/snek/tasks/main.yml | 4 ++-- roles/tx_submit_api/tasks/main.yml | 4 ++-- 7 files changed, 20 insertions(+), 20 deletions(-) diff --git a/roles/cardano_db_sync/tasks/main.yml b/roles/cardano_db_sync/tasks/main.yml index 58c64b4..4888557 100644 --- a/roles/cardano_db_sync/tasks/main.yml +++ b/roles/cardano_db_sync/tasks/main.yml @@ -11,8 +11,8 @@ ansible.builtin.file: state: directory path: '{{ item }}' - owner: '{{ cardano_node_user }}' - group: '{{ cardano_node_group }}' + owner: '{{ cardano_node_user | string }}' + group: '{{ cardano_node_group | string }}' mode: '0755' loop: - '{{ cardano_node_ipc_dir }}' diff --git a/roles/cardano_node/tasks/main.yml b/roles/cardano_node/tasks/main.yml index 6add623..ef73419 100644 --- a/roles/cardano_node/tasks/main.yml +++ b/roles/cardano_node/tasks/main.yml @@ -17,8 +17,8 @@ ansible.builtin.file: state: directory path: '{{ item }}' - owner: '{{ cardano_node_user }}' - group: '{{ cardano_node_group }}' + owner: '{{ cardano_node_user | string }}' + group: '{{ cardano_node_group | string }}' mode: '0755' loop: - '{{ cardano_node_db_dir }}' @@ -28,8 +28,8 @@ ansible.builtin.file: state: directory path: '{{ item }}' - owner: '{{ cardano_node_user }}' - group: '{{ cardano_node_group }}' + owner: '{{ cardano_node_user | string }}' + group: '{{ cardano_node_group | string }}' mode: '0755' loop: - '{{ cardano_node_topology_dir }}' @@ -39,8 +39,8 @@ template: dest: '{{ cardano_node_topology_file }}' src: custom-topology.json.j2 - owner: '{{ cardano_node_user }}' - group: '{{ cardano_node_group }}' + owner: '{{ cardano_node_user | string }}' + group: '{{ cardano_node_group | string }}' mode: 0644 register: cardano_topology when: cardano_node_manage_topology and not cardano_node_p2p_enabled @@ -49,8 +49,8 @@ template: dest: '{{ cardano_node_topology_file }}' src: custom-p2p-topology.json.j2 - owner: '{{ cardano_node_user }}' - group: '{{ cardano_node_group }}' + owner: '{{ cardano_node_user | string }}' + group: '{{ cardano_node_group | string }}' mode: 0644 register: cardano_topology_p2p when: cardano_node_manage_topology and cardano_node_p2p_enabled diff --git a/roles/cardano_node_api/tasks/main.yml b/roles/cardano_node_api/tasks/main.yml index 0a4a829..9ac3ef6 100644 --- a/roles/cardano_node_api/tasks/main.yml +++ b/roles/cardano_node_api/tasks/main.yml @@ -12,8 +12,8 @@ ansible.builtin.file: state: directory path: '{{ item }}' - owner: '{{ cardano_node_user }}' - group: '{{ cardano_node_group }}' + owner: '{{ cardano_node_user | string }}' + group: '{{ cardano_node_group | string }}' mode: '0755' loop: - '{{ cardano_node_ipc_dir }}' diff --git a/roles/kupo/tasks/main.yml b/roles/kupo/tasks/main.yml index 63fdca1..62567e9 100644 --- a/roles/kupo/tasks/main.yml +++ b/roles/kupo/tasks/main.yml @@ -12,8 +12,8 @@ ansible.builtin.file: state: directory path: '{{ item }}' - owner: '{{ cardano_node_user }}' - group: '{{ cardano_node_group }}' + owner: '{{ cardano_node_user | string }}' + group: '{{ cardano_node_group | string }}' mode: '0755' loop: - '{{ cardano_node_ipc_dir }}' diff --git a/roles/ogmios/tasks/main.yml b/roles/ogmios/tasks/main.yml index b885488..1fa0ba0 100644 --- a/roles/ogmios/tasks/main.yml +++ b/roles/ogmios/tasks/main.yml @@ -12,8 +12,8 @@ ansible.builtin.file: state: directory path: '{{ item }}' - owner: '{{ cardano_node_user }}' - group: '{{ cardano_node_group }}' + owner: '{{ cardano_node_user | string }}' + group: '{{ cardano_node_group | string }}' mode: '0755' loop: - '{{ cardano_node_ipc_dir }}' diff --git a/roles/snek/tasks/main.yml b/roles/snek/tasks/main.yml index 7320284..035164a 100644 --- a/roles/snek/tasks/main.yml +++ b/roles/snek/tasks/main.yml @@ -15,8 +15,8 @@ ansible.builtin.file: state: directory path: '{{ item }}' - owner: '{{ cardano_node_user }}' - group: '{{ cardano_node_group }}' + owner: '{{ cardano_node_user | string }}' + group: '{{ cardano_node_group | string }}' mode: '0755' loop: - '{{ cardano_node_ipc_dir }}' diff --git a/roles/tx_submit_api/tasks/main.yml b/roles/tx_submit_api/tasks/main.yml index 5d653ee..d989c5d 100644 --- a/roles/tx_submit_api/tasks/main.yml +++ b/roles/tx_submit_api/tasks/main.yml @@ -12,8 +12,8 @@ ansible.builtin.file: state: directory path: '{{ item }}' - owner: '{{ cardano_node_user }}' - group: '{{ cardano_node_group }}' + owner: '{{ cardano_node_user | string }}' + group: '{{ cardano_node_group | string }}' mode: '0755' loop: - '{{ cardano_node_ipc_dir }}'