mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
Fix references to user.username to be user.name
This commit is contained in:
parent
4807fbc8b7
commit
52c9a7af24
1 changed files with 4 additions and 4 deletions
|
@ -1030,11 +1030,11 @@ the user names with the SSH keys, and so on::
|
||||||
---
|
---
|
||||||
# file: tasks/user.yml
|
# file: tasks/user.yml
|
||||||
|
|
||||||
- name: ensure user ${user.username} exists
|
- name: ensure user ${user.name} exists
|
||||||
action: user state=present name=${user.username} password=${user.password}
|
action: user state=present name=${user.name} password=${user.password}
|
||||||
|
|
||||||
- name: install authorized keys for ${user.username}
|
- name: install authorized keys for ${user.name}
|
||||||
action: authorized_key state=present user=${user.username} key="${user.sshkey}"
|
action: authorized_key state=present user=${user.name} key="${user.sshkey}"
|
||||||
|
|
||||||
If you can follow this example, you've done pretty well! It combines most of the language features
|
If you can follow this example, you've done pretty well! It combines most of the language features
|
||||||
of example all together. As you can see, there are lots of different ways to load data from
|
of example all together. As you can see, there are lots of different ways to load data from
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue