Skip to content

Commit

Permalink
Added user check
Browse files Browse the repository at this point in the history
  • Loading branch information
usma0118 committed Oct 31, 2024
1 parent 3d95ef5 commit 7d6cf4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playbooks/alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
gather_facts: true
any_errors_fatal: true
vars:
user: "{{ ansible_user | lookup('env', 'USER') | default('vscode') }}"
user: "{{ ansible_user | default(lookup('env', 'USER')) | default('vscode') }}"

pre_tasks:
- name: Ensure user variable is set

Check failure on line 10 in playbooks/alpine.yml

View workflow job for this annotation

GitHub Actions / Ansible Lint

fqcn[action-core]

Use FQCN for builtin module actions (assert).
Expand All @@ -17,7 +17,7 @@
msg:
- "Ansible user is {{ user }}"
- "ansible_user: {{ ansible_user | default('undefined') }}"
- "Environment USER: {{ lookup('env', 'USER') | default('undefined') }}"
- "Environment USER: {{ lookup('env', 'USER') }}"

roles:
- role: common
Expand Down

0 comments on commit 7d6cf4d

Please sign in to comment.