Skip to content

Commit

Permalink
fix ansible-lint issue with su
Browse files Browse the repository at this point in the history
  • Loading branch information
richm committed Nov 14, 2023
1 parent 23acd55 commit 84bf4df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/tests_user_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 84bf4df

Please sign in to comment.