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

TASK TASK FAILED: [devsec.hardening.os_hardening : Set password ageing for existing regular (non-system, non-root) accounts] #670

Closed
Acenl12 opened this issue May 7, 2023 · 1 comment

Comments

@Acenl12
Copy link

Acenl12 commented May 7, 2023

Description

TASK [devsec.hardening.os_hardening : Set password ageing for existing regular (non-system, non-root) accounts] ********
failed: [localhost] {"ansible_loop_var": "item", "changed": false, "item": "guido", "msg": "Unsupported parameters for (ansible.builtin.user) module: password_expire_max, password_expire_min Supported parameters include: append, authorization, comment, create_home, expires, force, generate_ssh_key, group, groups, hidden, home, local, login_class, move_home, name, non_unique, password, password_lock, profile, remove, role, seuser, shell, skeleton, ssh_key_bits, ssh_key_comment, ssh_key_file, ssh_key_passphrase, ssh_key_type, state, system, uid, update_password"}

Reproduction steps

...
Running the following playbook:'---
- name: Playbook with local role
  hosts: localhost
  connection: local
  collections:
    - devsec.hardening
  roles:
    - devsec.hardening.os_hardening'

Current Behavior

...

Expected Behavior

I expected this playbook to have no errors on any task but it did on the one mentioned above, please help.

OS / Environment

Provide all relevant information below, e.g. target OS versions, network device firmware, etc.

PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.2 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

Ansible Version

"ansible 2.10.8
  config file = None
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]"

Collection Version

6.2.0

Additional information

...

@Acenl12 Acenl12 added the bug label May 7, 2023
@schurzi schurzi removed the bug label May 7, 2023
@schurzi
Copy link
Contributor

schurzi commented May 7, 2023

The Ansible version 2.10.8 is out of support. Please use a more recent version of Ansible.
For mor context also see #650 and #657

@schurzi schurzi closed this as completed May 7, 2023
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

No branches or pull requests

2 participants