Skip to content
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

Fix: allow passing update password args when creating users #14

Merged
Merged
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: 2 additions & 0 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on: # yamllint disable-line rule:truthy
tags_ignore:
- '*'
pull_request:
schedule:
- cron: '0 0 1 */3 *'

jobs:
setup:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ See [tasks/install.yml](tasks/install.yml).
id_rsa:
public: 'ssh-rsa '
private: "{{ lookup('community.hashi_vault.hashi_vault', 'secret/ssh:private_key') }}"
update_password: "on_create" # default is always
```

## :closed_lock_with_key: [Hardening](HARDENING.md)
Expand Down
8 changes: 6 additions & 2 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
dependency:
name: shell
command: python3 -m pip install pytest-testinfra

command: |
pip install requests pytest-testinfra &&
ansible-galaxy collection install community.crypto community.general
driver:
name: docker

Expand All @@ -27,6 +28,9 @@ provisioner:
name: ansible
env:
ANSIBLE_FORCE_COLOR: "true"
ANSIBLE_LOAD_CALLBACK_PLUGINS: "true"
ANSIBLE_CALLBACKS_ENABLED: "ansible.posix.profile_tasks"
ANSIBLE_STDOUT_CALLBACK: "ansible.posix.debug"
options:
v: true

Expand Down
1 change: 1 addition & 0 deletions tasks/create_users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
uid: "{{ item.value.uid | default(omit) }}"
group: "{{ item.value.group | default(omit) }}"
groups: "{{ item.value.groups | default(omit) }}"
update_password: "{{ item.value.update_password | default(omit) }}"
Loading