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

(bugfix) [5.4.1.4] Task shouldn't fail if user in list doesn't exist #35

Merged
merged 1 commit into from
Feb 2, 2021

Conversation

jvleminc
Copy link
Collaborator

@jvleminc jvleminc commented Feb 2, 2021

The following task should not fail if a user in the list list_of_os_users doesn't exist, instead it should continue with the next user in the list.

- name: 5.4.1.4 Ensure inactive password lock is 30 days or less
  block:
    - name: 5.4.1.4 Ensure inactive password lock is 30 days or less | useradd
      command: "useradd -D -f {{ account_inactive }}"
    - name: 5.4.1.4 Ensure inactive password lock is 30 days or less | useradd
      command: "chage --inactive {{ account_inactive }} {{ item }}"
      with_items: "{{ list_of_os_users }}"

@jvleminc jvleminc requested a review from alivx February 2, 2021 21:18
@alivx alivx merged commit 6f1579d into master Feb 2, 2021
@jvleminc jvleminc deleted the bugfix/5.4.1.4_ignore_errors_when_user_not_exists branch February 3, 2021 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants