Skip to content

Commit

Permalink
Make kernarg optional
Browse files Browse the repository at this point in the history
Fix user import debug task
  • Loading branch information
tom91136 committed Sep 30, 2024
1 parent 8edbcdd commit 148db68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions playbook-task-sync-users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@

- name: Debug and print existing_users
debug:
var: users_to_delete
msg: "Run with --extra-vars=delete_users=true to delete these users"
msg: "Users: \n{{users_to_delete}}\nRun with --extra-vars=delete_users=true to delete these users"
when: delete_users is undefined

- name: "Drop absent users"
Expand Down
2 changes: 2 additions & 0 deletions templates/nodes.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ nodes:
ipaddr: {{vars.mgmt_ip}}
interface: lanplus
{% endif %}
{% if vars.kernargs is defined %}
kernel:
args: {{vars.kernargs}}
{% endif %}
network devices:
default:
hwaddr: {{vars.mac}}
Expand Down

0 comments on commit 148db68

Please sign in to comment.