Skip to content

Correct misspellings #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ molecule destroy # Destroys the container
```

## Testing the collection
Instead of committing to a brach and testing on another machine, it might be easier to just build the collection and install it locally. This will build and install the collection locally on your machine. Look at the file `dev.sh` to see how this is done.
Instead of committing to a branch and testing on another machine, it might be easier to just build the collection and install it locally. This will build and install the collection locally on your machine. Look at the file `dev.sh` to see how this is done.

```bash
bash dev.sh
Expand Down
8 changes: 4 additions & 4 deletions roles/linux_common/tasks/users.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
- name: Set users variable when there are NOT any additional users.
ansible.builtin.set_fact:
flattend_users: "{{ users }}"
flattened_users: "{{ users }}"
when: additional_users is not defined

- name: Set users variable when there ARE additional users.
ansible.builtin.set_fact:
flattend_users: "{{ users + additional_users }}"
flattened_users: "{{ users + additional_users }}"
when: additional_users is defined

- name: Configure users.
Expand All @@ -20,7 +20,7 @@
state: '{{ item.state | default("present") }}'
uid: '{{ item.uid | default(omit) }}'
update_password: '{{ item.update_password | default("on_create") }}'
with_items: "{{ flattend_users }}"
with_items: "{{ flattened_users }}"
register: created_users

- name: Force password change on next login.
Expand All @@ -37,7 +37,7 @@
key: '{{item.1.public_key}}'
state: '{{item.1.state | default ("present")}}'
with_subelements:
- "{{ flattend_users }}"
- "{{ flattened_users }}"
- authorized_keys
- skip_missing: true
when: item.0.state | default("present") != 'absent'