Hi Ashok

What you need is some sort of orchestrator or you can use gitlab CI and runner 
to execute ansible / ansible-navigator / ansible-runner etc etc . Another 
option that I have implemented in the past for customers is using ansible-pull 
from the ansible controller and execute plays accordingly. Hopefully some ideas 
you might be able to explore.

https://www.ansible.com/blog/using-ansible-automation-platform-gitlab-ce-and-webhooks-to-deploy-iis-website

https://www.devopsschool.com/blog/what-is-ansible-pull-and-how-can-we-use-it/


Regards


> On 17 Nov 2023, at 05:10, Ashok Reddy <[email protected]> wrote:
> 
> Hi Todd, 
> 
> Thanks for providing your suggestion. 
> 
> But, There are a few of the templates, which are available in gitlab. If 
> there is any change in the template file, then only to deploy in UAT servers. 
> This is what i am trying to implement. Is this not possible to implement in 
> Ansible side? 
> 
> Note: i did R&D and it suggested to implement synchronize module in ansible
> 
> On Fri, 17 Nov 2023 at 11:59 AM, Todd Lewis <[email protected] 
> <mailto:[email protected]>> wrote:
> Ashok,
> 
> As a gitlab and Ansible user, this sounds to me like more of a gitlab problem 
> than an Ansible problem.
> 
> You should follow and read the first few links at the top of Gitlab CI 
> Keyword Reference <https://gitlab.freedesktop.org/help/ci/yaml/index.md> 
> index document. They should give you some ideas about how to make things 
> happen when commits are made to your projects.
> 
> Good luck,
> --
> Todd
> 
> 
> On 11/16/23 7:29 PM, Ashok Reddy wrote:
> 
>> Hi , 
>> 
>> Please find the following:
>> 
>> On Thu, 16 Nov 2023 at 10:04 PM, Dick Visser <[email protected] 
>> <mailto:[email protected]>> wrote:
>> that is very little information...
>> 
>> answers to these would help:
>> 
>> - what is in that gitlab repository? configuration files, which are required 
>> to access our application 
>> - what is "the file": like EAxI config file, jboss standalone file
>> - what are "servers":RHEL servers 
>> - what does your inventory look like?: SIT, UAT envs 
>> 
>> Each environment has two servers
>> 
>> etc etc
>> 
>> Please let me know if you need any other information.
>> 
>> 
>> On Thu, 16 Nov 2023 at 14:47, Ashok Reddy <[email protected] 
>> <mailto:[email protected]>> wrote:
>> Hi, 
>> 
>> I have been trying to implement the following: 
>> 
>> If any file change in git lab repo, then only we need to deploy the file in 
>> servers. 
>> 
>> How to write Ansible playbook?
>> -- 
>> 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] 
>> <mailto:[email protected]>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/CAKRLcHhXSrJSoAdd6toBHt9Bh8CsF%2B92T5Ga%3DTEvrzhwKQG9sw%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/CAKRLcHhXSrJSoAdd6toBHt9Bh8CsF%2B92T5Ga%3DTEvrzhwKQG9sw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>> -- 
>> 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] 
>> <mailto:[email protected]>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/CAF8BbLbMHnmt3Fzb1N1oCG-avKjQZzbKspB%2BZJwQzJRJncgZMg%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/CAF8BbLbMHnmt3Fzb1N1oCG-avKjQZzbKspB%2BZJwQzJRJncgZMg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>> -- 
>> 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] 
>> <mailto:[email protected]>.
> 
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/CAKRLcHhi7JYyzXrK3-7Z0%2BPg5iU16kmW6RHnh1dp7VKHd_tqHA%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/CAKRLcHhi7JYyzXrK3-7Z0%2BPg5iU16kmW6RHnh1dp7VKHd_tqHA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> 
> -- 
> Todd
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/a15a4d78-3e30-4228-8dd7-7e947ba69289%40gmail.com
>  
> <https://groups.google.com/d/msgid/ansible-project/a15a4d78-3e30-4228-8dd7-7e947ba69289%40gmail.com?utm_medium=email&utm_source=footer>.
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/CAKRLcHhHoYyfU-YhnR%2BpHh9qN9362HD5THmUOiP%2BqfWYKnLffw%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/ansible-project/CAKRLcHhHoYyfU-YhnR%2BpHh9qN9362HD5THmUOiP%2BqfWYKnLffw%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/EA57BD18-08F7-4BD0-AE29-DCB3F6E7A833%40gmail.com.

Reply via email to