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

[libsftp] pause the system-ldap playbook #4172

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
6 changes: 6 additions & 0 deletions roles/system_ldap/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
line: '# AllowUsers pulsys'
notify: restart sshd

- name: pause to configure LDAP connection
ansible.builtin.pause:
prompt: "Follow https://github.com/pulibrary/princeton_ansible/blob/main/roles/system_ldap/README.md to configure the LDAP connection"
seconds: None
minutes: None
Comment on lines +41 to +42
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried this out in a playbook of mine, I got the following error:

msg: 'parameters are mutually exclusive: minutes|seconds'

When I tried it with just one of them, I got a type error with seconds not allowed to be None (didn't capture the exact error, sorry).

If you just want a prompt that waits until the user enters ctrl-c to continue or abort, it seems that you only need the prompt (although that was not what I expected from reading the documentation)

Suggested change
seconds: None
minutes: None


- name: system_ldap | configure pam to enable mkhomedir
ansible.builtin.shell: realm permit "{{ ad_user | default('[email protected]') }}"
become: true
Expand Down