Skip to content

Commit

Permalink
Merge pull request #14 from claranet/fix/allow_passing_update_passwor…
Browse files Browse the repository at this point in the history
…d_args_when_creating_users

Fix: allow passing update password args when creating users
  • Loading branch information
bngameni authored Mar 26, 2024
2 parents 5e48f4d + 1727bf5 commit b0de122
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
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) }}"

0 comments on commit b0de122

Please sign in to comment.