Ansible Module - Users and Groups
- expire user accout: expires
create a user named admin with group: admin and uid: 2048
- hosts: all
  gather_facts: no
  tasks:
    - group:
      name: admin
  - user:
      name: admin
      group: admin
      uid: 2048Create a user account with username testman that would be expiring after 3 years. The expires option on the users module is in the epoch. So Sunday, December 31, 2023 11:59:59 PM GMT== 1704067199 as epoch time
- hosts: all
  gather_facts: no
  tasks:
    - user:
        name: 'testman'
        expires: 1704067199사용자 계정, 그룹 삭제
- hosts: all
  gather_facts: no
  tasks:
    - user:
        name: 'admin'
        state: absent
    - group:
        name: 'admin'
        state: absentAuthor And Source
이 문제에 관하여(Ansible Module - Users and Groups), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@codingdaddy/Ansible-Module-Users-and-Groups저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)