xmail.com
From: Kai Stian Olstad
Date: 2016-10-01 17:00
To: ansible-project
Subject: Re: [ansible-project] Re: Re: ansible user module change passwd
On 01. okt. 2016 04:24, hzj...@foxmail.com wrote:
>
> thanks for ur advice, i have aix and linux, i wrote the playbook based on
> ur re
On 01. okt. 2016 04:24, hzj...@foxmail.com wrote:
thanks for ur advice, i have aix and linux, i wrote the playbook based on ur
reply, it works , but i think it's too long, is there a better way to rewrite
this ?
In my opinion it's not long, you could but the code in it's one file and
u
d: uname -a
when: ansible_system == 'AIX' and user_info_aix.stdout != ""
hzj...@foxmail.com
From: Kai Stian Olstad
Date: 2016-09-30 19:53
To: ansible-project
Subject: Re: [ansible-project] Re: Re: ansible user module change passwd
On 30.09.2016 11:50, hzj...@foxmail.co
On 30.09.2016 11:50, hzj...@foxmail.com wrote:
i tried, the playbook still creates the user if user not exists on
the remote hosts ;
You'll need to add a test to check if the user exist and use a when on
the update password task.
---
- hosts: localhost
remote_user: root
become: yes