Skip to content

Commit

Permalink
adding user logic
Browse files Browse the repository at this point in the history
  • Loading branch information
usma0118 committed Oct 30, 2024
1 parent 5eb61fb commit 53e2a3e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions playbooks/alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
any_errors_fatal: true
vars:
user: "{{ ansible_user | default(lookup('env', 'USER') | default('vscode')) }}"
pre_tasks:
- name: Print the determined ansible user

Check failure on line 9 in playbooks/alpine.yml

View workflow job for this annotation

GitHub Actions / Ansible Lint

fqcn[action-core]

Use FQCN for builtin module actions (debug).
debug:
msg: "Ansible user is {{ user }}"
roles:
- role: common
common_user: "{{ user }}"
Expand Down

0 comments on commit 53e2a3e

Please sign in to comment.