Skip to content

Commit bdba2ec

Browse files
author
Derek
committed
fix: quote awk command in gpu_groups.yml to fix YAML parsing
The unquoted colon in `awk -F:` caused Ansible YAML parser to fail with "Colons in unquoted values must be followed by a non-space character" during Packer desktop template build.
1 parent a096a7b commit bdba2ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ansible/roles/rdp/tasks/gpu_groups.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
- name: Get list of non-system users (UID 1000-60000)
3333
ansible.builtin.shell:
34-
cmd: awk -F: '$3 >= 1000 && $3 < 60000 && $1 != "nobody" {print $1}' /etc/passwd
34+
cmd: "awk -F: '$3 >= 1000 && $3 < 60000 && $1 != \"nobody\" {print $1}' /etc/passwd"
3535
register: non_system_users
3636
changed_when: false
3737
when:

0 commit comments

Comments
 (0)