Creating a new user and password with Ansible

后端 未结 22 1490
迷失自我
迷失自我 2020-12-22 17:00

I have an ansible task which creates a new user on ubuntu 12.04;

- name: Add deployment user
    action: user name=deployer password=mypassword
22条回答
  •  遥遥无期
    2020-12-22 17:40

    The task definition for the user module should be different in the latest Ansible version.

    tasks:
      - user: name=test password={{ password }} state=present
    

提交回复
热议问题