From 84bf4dfd5b49d305125e643aff7c292befadaf1d Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Tue, 14 Nov 2023 11:24:35 -0700 Subject: [PATCH] fix ansible-lint issue with su --- tests/tests_user_config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/tests_user_config.yml b/tests/tests_user_config.yml index 23c7e01..4918ac4 100644 --- a/tests/tests_user_config.yml +++ b/tests/tests_user_config.yml @@ -51,7 +51,7 @@ - name: Stat the .ssh dir become: true become_user: "{{ username }}" - become_method: su + become_method: ansible.builtin.su stat: path: "/home/{{ username }}/.ssh" register: @@ -68,7 +68,7 @@ - name: Make sure the file is readable by user become: true become_user: "{{ username }}" - become_method: su + become_method: ansible.builtin.su stat: path: "/home/{{ username }}/.ssh/config" @@ -100,7 +100,7 @@ - name: Test the effective configuration using ssh become: true become_user: "{{ username }}" - become_method: su + become_method: ansible.builtin.su command: ssh -vvv -G example register: effective when: