Not sure putting such information in some version control system is the 
wisest, but if you do have it under version control of some type, the 
version control mechanism should be able to tell if it has been updated.  
You would then just have to have ansible run the version control command to 
check if an update was made, then run the update if required.

On Friday, October 26, 2018 at 3:39:16 AM UTC-4, SUMIT SAHAY wrote:
>
>
> Thanks Jonathan for your reply.
> But it is part of the use case, I am trying to achieve it.
>
> Is there way to achieve it.
>
> Regards
> Sumit Sahay
> 7044112109
>
> On Wednesday, 24 October 2018 17:16:19 UTC+5:30, Jonathan Lozada De La 
> Matta wrote:
>>
>> That just seems like bad practice. I wouldn't recommend this.
>>
>> On Wed, Oct 24, 2018 at 2:44 AM SUMIT SAHAY <[email protected]> wrote:
>>
>>> Hi All,
>>>
>>> I have one use case where if the new user is created in the server then 
>>> ansible playbook update the file /etc/passwd and /etc/shadow file in 
>>> version control.
>>>
>>> The ansible script check the difference and update the version control 
>>> with the latest copy of both the file.
>>>
>>> Looking forward for reply.
>>>
>>>
>>> Regards
>>> Sumit Sahay
>>> 7044112109
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Ansible Project" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/ansible-project/42d19931-641b-430a-b79f-5a763b947a3e%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/ansible-project/42d19931-641b-430a-b79f-5a763b947a3e%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> -- 
>>
>> Jonathan lozada de la matta
>>
>> AUTOMATION PRACTICE
>>
>>
>>  
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/bbe95284-4a08-4643-8373-a462299e496b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to