Re: [ansible-project] Yum update on multiple hosts but using a cusom repo file

2020-04-28 Thread Quad Zero
Thank you so much!!! :)

On Thu, Apr 23, 2020 at 2:41 AM Jack Morgan  wrote:

> Hello,
>
> Based on the situation you define below, it sounds like you are wanting
> to add a custom yum repository to some hosts. Let's look at how you
> could go about doing it.
>
> (1) You will need to create a yum repository file on your hosts. This
> file will point to your custom repository on your Yum server. You can
> achieve that via ansible module(s) or just copy the yum repository file
> that you created to each host. You will need to do some research on how
> to do it. As others have pointed out, the yum module is a good place to
> start. I'm only offering two ways to achieve this step but there might
> be others strategies.
>
> (2) You will need to have ansible update your systems. I'm including
> part of my upgrade playbook below to use as a reference (I'm on fedora
> so using dnf instead of yum). You can have your hosts defined in your
> ansible hosts file (/etc/ansible/hosts). I'm not sure your strategy for
> organizing your hosts as there is a lot to say here but again some
> investigation is needed.
>
> Finally, you could combine step 1 and 2 into a single playbook to have
> them be two playbooks depending on your needs. I hope this is helpful.
>
> ---
>
> - hosts: fedora
>   tasks:
>   - name: UPDATE | upgrade packages
> dnf:
>   name: "*"
>   state: latest
>
>   - name: UPDATE | check if reboot is needed due to new kernel
> shell: if [ $(rpm -q kernel|tail -n 1) != kernel-$(uname -r) ]; then
> echo 'reboot'; else echo 'no'; fi
> register: reboot_hint
>
>   - name: UPDATE | rebooting host...
> shell: shutdown -r now "Reboot required for updated kernel"
> async: 1
> poll: 0
> when: reboot_hint.stdout.find("reboot") != -1
>
>   - name: UPDATE | wait for host to reboot...
> wait_for_connection:
>   connect_timeout: 20
>   sleep: 5
>   delay: 5
>   timeout: 300
> when: reboot_hint.stdout.find("reboot") != -1
>
>   - name: UPDATE | remove unused packages
> dnf:
>   autoremove: yes
>
>
>
>
> On 4/21/20 9:44 PM, Quad Zero wrote:
> > G'day all Ansible gurus,
> >
> > I am very new to Ansible and I am learning through youtube videos as I
> > am enquiring about this problem. It might be a simple one to some of
> > you guys:
> >
> > So I have multiple servers on my System. I have a VM by the name of
> > YUM which has all the updates (updates folder) on its /var/www/html
> > folder so it can be referenced from other systems if it was done
> > manually (which is what i have been doing until now).
> >
> > How do I specify this folder in Ansible to all other hosts?
> >
> > For eg:
> >
> > if my YUM server has all its updates in
> > http://192.168.0.5/rhel6pathes/april/
> >
> > how do i get the other servers to look at this location and update it
> > from here?
> >
> > Thank you so much.
>
> --
> Jack Morgan
>
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/1ae55ac5-4443-bdb7-c72f-2831ba2a7434%40jento.io
> .
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAKr7FnvcKLsaRf%3DOu4TKB8ZgV%2BMPbU7cYP9isKfOJLSU_p39cg%40mail.gmail.com.


Re: [ansible-project] Yum update on multiple hosts but using a cusom repo file

2020-04-22 Thread Jack Morgan
Hello,

Based on the situation you define below, it sounds like you are wanting
to add a custom yum repository to some hosts. Let's look at how you
could go about doing it.

(1) You will need to create a yum repository file on your hosts. This
file will point to your custom repository on your Yum server. You can
achieve that via ansible module(s) or just copy the yum repository file
that you created to each host. You will need to do some research on how
to do it. As others have pointed out, the yum module is a good place to
start. I'm only offering two ways to achieve this step but there might
be others strategies.

(2) You will need to have ansible update your systems. I'm including
part of my upgrade playbook below to use as a reference (I'm on fedora
so using dnf instead of yum). You can have your hosts defined in your
ansible hosts file (/etc/ansible/hosts). I'm not sure your strategy for
organizing your hosts as there is a lot to say here but again some
investigation is needed.

Finally, you could combine step 1 and 2 into a single playbook to have
them be two playbooks depending on your needs. I hope this is helpful.

---

- hosts: fedora
  tasks:
  - name: UPDATE | upgrade packages
    dnf:
  name: "*"
  state: latest

  - name: UPDATE | check if reboot is needed due to new kernel
    shell: if [ $(rpm -q kernel|tail -n 1) != kernel-$(uname -r) ]; then
echo 'reboot'; else echo 'no'; fi
    register: reboot_hint

  - name: UPDATE | rebooting host...
    shell: shutdown -r now "Reboot required for updated kernel"
    async: 1
    poll: 0
    when: reboot_hint.stdout.find("reboot") != -1

  - name: UPDATE | wait for host to reboot...
    wait_for_connection:
  connect_timeout: 20
  sleep: 5
  delay: 5
  timeout: 300
    when: reboot_hint.stdout.find("reboot") != -1

  - name: UPDATE | remove unused packages
    dnf:
  autoremove: yes




On 4/21/20 9:44 PM, Quad Zero wrote:
> G'day all Ansible gurus,
>
> I am very new to Ansible and I am learning through youtube videos as I
> am enquiring about this problem. It might be a simple one to some of
> you guys:
>
> So I have multiple servers on my System. I have a VM by the name of
> YUM which has all the updates (updates folder) on its /var/www/html
> folder so it can be referenced from other systems if it was done
> manually (which is what i have been doing until now).
>
> How do I specify this folder in Ansible to all other hosts?
>
> For eg:
>
> if my YUM server has all its updates in 
> http://192.168.0.5/rhel6pathes/april/
>
> how do i get the other servers to look at this location and update it
> from here?
>
> Thank you so much.

-- 
Jack Morgan


-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1ae55ac5-4443-bdb7-c72f-2831ba2a7434%40jento.io.


signature.asc
Description: OpenPGP digital signature


Re: [ansible-project] Yum update on multiple hosts but using a cusom repo file

2020-04-22 Thread Stefan Hornburg (Racke)
On 4/22/20 10:26 AM, Quad Zero wrote:
> Hi Vivek,
> 
> On each machine, I would run yum update on it. My repo file points to the 
> server
> http://192.168.0.5/rhel6pathes/april/

Give the yum_repository module a try:

https://docs.ansible.com/ansible/latest/modules/yum_repository_module.html

Regards
 Racke

> 
> Thank you.
> 
> On Wed, Apr 22, 2020 at 3:06 PM Vivek Kothawale  > wrote:
> 
> Hi  
> Could you please let me know how you doing it in manually ?
> 
> Thanks
> Vivek
> 
> On Wed, Apr 22, 2020, 10:34 AM Dick Visser  > wrote:
> 
> If you are really new then you are better off reading about the 
> basics first, for instance 
> 
> 
> https://docs.ansible.com/ansible/latest/user_guide/intro_getting_started.html
> 
> This should give enough inspiration to get going with your task at 
> hand. 
> 
> 
> 
> On Wed, 22 Apr 2020 at 06:53, Quad Zero  > wrote:
> 
> Vivek,
> 
> Could you actually show that to me in code? I am very new to 
> this. 
> 
> Thank you sir.
> 
> On Wednesday, April 22, 2020 at 2:50:52 PM UTC+10, Vivek 
> Kothawale wrote:
> 
> Hi
> 
> You could use variable and reference that variable inside 
> playbook.
> I this way you don't have to repeat on call same path mutiple 
> time instead you can call that variable.
> 
> Thanks,
> Vivek
> 
> On Wed, Apr 22, 2020, 10:14 AM Quad Zero  
> wrote:
> 
> G'day all Ansible gurus,
> 
> I am very new to Ansible and I am learning through 
> youtube videos as I am enquiring about this
> problem. It might be a simple one to some of you guys:
> 
> So I have multiple servers on my System. I have a VM by 
> the name of YUM which has all the updates
> (updates folder) on its /var/www/html folder so it can be 
> referenced from other systems if it was
> done manually (which is what i have been doing until now).
> 
> How do I specify this folder in Ansible to all other 
> hosts?
> 
> For eg:
> 
> if my YUM server has all its updates in 
> http://192.168.0.5/rhel6pathes/april/
> 
> how do i get the other servers to look at this location 
> and update it from here?
> 
> Thank you so much.
> 
> 
> 
> -- 
> 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
> ansible...@googlegroups.com.
> To view this discussion on the web visit
> 
> https://groups.google.com/d/msgid/ansible-project/ad7b76e9-6307-46f4-936a-b5cbfc7302e0%40googlegroups.com
> 
> .
> 
> -- 
> 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
> ansible-project+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit
> 
> https://groups.google.com/d/msgid/ansible-project/f0395e8d-460c-4d75-9340-8d7ce6fa1562%40googlegroups.com
> 
> .
> 
> -- 
> Sent from a mobile device - please excuse the brevity, spelling and 
> punctuation.
> 
> -- 
> 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
> ansible-project+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit
> 
> https://groups.google.com/d/msgid/ansible-project/CAL8fbwNnBttcaDzpfVE%3DQt46s9oAUHuE6Sk6T%2BECz4Y9rgAoEg%40mail.gmail.com
> 
> .
> 
> -- 
> 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
> 

Re: [ansible-project] Yum update on multiple hosts but using a cusom repo file

2020-04-22 Thread Quad Zero
Hi Vivek,

On each machine, I would run yum update on it. My repo file points to the
server
http://192.168.0.5/rhel6pathes/april/

Thank you.

On Wed, Apr 22, 2020 at 3:06 PM Vivek Kothawale 
wrote:

> Hi
> Could you please let me know how you doing it in manually ?
>
> Thanks
> Vivek
>
> On Wed, Apr 22, 2020, 10:34 AM Dick Visser  wrote:
>
>> If you are really new then you are better off reading about the basics
>> first, for instance
>>
>>
>> https://docs.ansible.com/ansible/latest/user_guide/intro_getting_started.html
>>
>> This should give enough inspiration to get going with your task at hand.
>>
>>
>>
>> On Wed, 22 Apr 2020 at 06:53, Quad Zero  wrote:
>>
>>> Vivek,
>>>
>>> Could you actually show that to me in code? I am very new to this.
>>>
>>> Thank you sir.
>>>
>>> On Wednesday, April 22, 2020 at 2:50:52 PM UTC+10, Vivek Kothawale wrote:

 Hi

 You could use variable and reference that variable inside playbook.
 I this way you don't have to repeat on call same path mutiple time
 instead you can call that variable.

 Thanks,
 Vivek

 On Wed, Apr 22, 2020, 10:14 AM Quad Zero  wrote:

> G'day all Ansible gurus,
>
> I am very new to Ansible and I am learning through youtube videos as I
> am enquiring about this problem. It might be a simple one to some of you
> guys:
>
> So I have multiple servers on my System. I have a VM by the name of
> YUM which has all the updates (updates folder) on its /var/www/html folder
> so it can be referenced from other systems if it was done manually (which
> is what i have been doing until now).
>
> How do I specify this folder in Ansible to all other hosts?
>
> For eg:
>
> if my YUM server has all its updates in
> http://192.168.0.5/rhel6pathes/april/
>
> how do i get the other servers to look at this location and update it
> from here?
>
> Thank you so much.
>
>
>
> --
> 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 ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/ad7b76e9-6307-46f4-936a-b5cbfc7302e0%40googlegroups.com
> 
> .
>
 --
>>> 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 ansible-project+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/f0395e8d-460c-4d75-9340-8d7ce6fa1562%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> Sent from a mobile device - please excuse the brevity, spelling and
>> punctuation.
>>
>> --
>> 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 ansible-project+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/CAL8fbwNnBttcaDzpfVE%3DQt46s9oAUHuE6Sk6T%2BECz4Y9rgAoEg%40mail.gmail.com
>> 
>> .
>>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAA420E9KgDDWSo5vYgmpqhT6AvA3hLKxjRAiStWHF6ZFKJhZfg%40mail.gmail.com
> 
> .
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAKr7FntkWu3ntYXAu0V61%3DxMo-OyhXrz%3Df%2BqjzCDGkS5uYow8g%40mail.gmail.com.


Re: [ansible-project] Yum update on multiple hosts but using a cusom repo file

2020-04-21 Thread Javi Legido
Good morning.

You could concept ansible as the automated execution of commands through
SSH connection to the target hosts.

If you want to keep your approach you could:

1. Expose the source files through SSHFS
2. Mount on each host above directory

All those tasks could be automated through ansible.

Cheers.

Javier

On Wed, 22 Apr 2020 at 07:06, Vivek Kothawale  wrote:

> Hi
> Could you please let me know how you doing it in manually ?
>
> Thanks
> Vivek
>
> On Wed, Apr 22, 2020, 10:34 AM Dick Visser  wrote:
>
>> If you are really new then you are better off reading about the basics
>> first, for instance
>>
>>
>> https://docs.ansible.com/ansible/latest/user_guide/intro_getting_started.html
>>
>> This should give enough inspiration to get going with your task at hand.
>>
>>
>>
>> On Wed, 22 Apr 2020 at 06:53, Quad Zero  wrote:
>>
>>> Vivek,
>>>
>>> Could you actually show that to me in code? I am very new to this.
>>>
>>> Thank you sir.
>>>
>>> On Wednesday, April 22, 2020 at 2:50:52 PM UTC+10, Vivek Kothawale wrote:

 Hi

 You could use variable and reference that variable inside playbook.
 I this way you don't have to repeat on call same path mutiple time
 instead you can call that variable.

 Thanks,
 Vivek

 On Wed, Apr 22, 2020, 10:14 AM Quad Zero  wrote:

> G'day all Ansible gurus,
>
> I am very new to Ansible and I am learning through youtube videos as I
> am enquiring about this problem. It might be a simple one to some of you
> guys:
>
> So I have multiple servers on my System. I have a VM by the name of
> YUM which has all the updates (updates folder) on its /var/www/html folder
> so it can be referenced from other systems if it was done manually (which
> is what i have been doing until now).
>
> How do I specify this folder in Ansible to all other hosts?
>
> For eg:
>
> if my YUM server has all its updates in
> http://192.168.0.5/rhel6pathes/april/
>
> how do i get the other servers to look at this location and update it
> from here?
>
> Thank you so much.
>
>
>
> --
> 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 ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/ad7b76e9-6307-46f4-936a-b5cbfc7302e0%40googlegroups.com
> 
> .
>
 --
>>> 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 ansible-project+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/f0395e8d-460c-4d75-9340-8d7ce6fa1562%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> Sent from a mobile device - please excuse the brevity, spelling and
>> punctuation.
>>
>> --
>> 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 ansible-project+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/CAL8fbwNnBttcaDzpfVE%3DQt46s9oAUHuE6Sk6T%2BECz4Y9rgAoEg%40mail.gmail.com
>> 
>> .
>>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAA420E9KgDDWSo5vYgmpqhT6AvA3hLKxjRAiStWHF6ZFKJhZfg%40mail.gmail.com
> 
> .
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CALbe0QWym%2Bbg5qUSFisfvab78mMA4HgYLg6tHA3-my8PUZXDTQ%40mail.gmail.com.


Re: [ansible-project] Yum update on multiple hosts but using a cusom repo file

2020-04-21 Thread Vivek Kothawale
Hi
Could you please let me know how you doing it in manually ?

Thanks
Vivek

On Wed, Apr 22, 2020, 10:34 AM Dick Visser  wrote:

> If you are really new then you are better off reading about the basics
> first, for instance
>
>
> https://docs.ansible.com/ansible/latest/user_guide/intro_getting_started.html
>
> This should give enough inspiration to get going with your task at hand.
>
>
>
> On Wed, 22 Apr 2020 at 06:53, Quad Zero  wrote:
>
>> Vivek,
>>
>> Could you actually show that to me in code? I am very new to this.
>>
>> Thank you sir.
>>
>> On Wednesday, April 22, 2020 at 2:50:52 PM UTC+10, Vivek Kothawale wrote:
>>>
>>> Hi
>>>
>>> You could use variable and reference that variable inside playbook.
>>> I this way you don't have to repeat on call same path mutiple time
>>> instead you can call that variable.
>>>
>>> Thanks,
>>> Vivek
>>>
>>> On Wed, Apr 22, 2020, 10:14 AM Quad Zero  wrote:
>>>
 G'day all Ansible gurus,

 I am very new to Ansible and I am learning through youtube videos as I
 am enquiring about this problem. It might be a simple one to some of you
 guys:

 So I have multiple servers on my System. I have a VM by the name of YUM
 which has all the updates (updates folder) on its /var/www/html folder so
 it can be referenced from other systems if it was done manually (which is
 what i have been doing until now).

 How do I specify this folder in Ansible to all other hosts?

 For eg:

 if my YUM server has all its updates in
 http://192.168.0.5/rhel6pathes/april/

 how do i get the other servers to look at this location and update it
 from here?

 Thank you so much.



 --
 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 ansible...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/ansible-project/ad7b76e9-6307-46f4-936a-b5cbfc7302e0%40googlegroups.com
 
 .

>>> --
>> 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 ansible-project+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/f0395e8d-460c-4d75-9340-8d7ce6fa1562%40googlegroups.com
>> 
>> .
>>
> --
> Sent from a mobile device - please excuse the brevity, spelling and
> punctuation.
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAL8fbwNnBttcaDzpfVE%3DQt46s9oAUHuE6Sk6T%2BECz4Y9rgAoEg%40mail.gmail.com
> 
> .
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAA420E9KgDDWSo5vYgmpqhT6AvA3hLKxjRAiStWHF6ZFKJhZfg%40mail.gmail.com.


Re: [ansible-project] Yum update on multiple hosts but using a cusom repo file

2020-04-21 Thread Dick Visser
If you are really new then you are better off reading about the basics
first, for instance

https://docs.ansible.com/ansible/latest/user_guide/intro_getting_started.html

This should give enough inspiration to get going with your task at hand.



On Wed, 22 Apr 2020 at 06:53, Quad Zero  wrote:

> Vivek,
>
> Could you actually show that to me in code? I am very new to this.
>
> Thank you sir.
>
> On Wednesday, April 22, 2020 at 2:50:52 PM UTC+10, Vivek Kothawale wrote:
>>
>> Hi
>>
>> You could use variable and reference that variable inside playbook.
>> I this way you don't have to repeat on call same path mutiple time
>> instead you can call that variable.
>>
>> Thanks,
>> Vivek
>>
>> On Wed, Apr 22, 2020, 10:14 AM Quad Zero  wrote:
>>
>>> G'day all Ansible gurus,
>>>
>>> I am very new to Ansible and I am learning through youtube videos as I
>>> am enquiring about this problem. It might be a simple one to some of you
>>> guys:
>>>
>>> So I have multiple servers on my System. I have a VM by the name of YUM
>>> which has all the updates (updates folder) on its /var/www/html folder so
>>> it can be referenced from other systems if it was done manually (which is
>>> what i have been doing until now).
>>>
>>> How do I specify this folder in Ansible to all other hosts?
>>>
>>> For eg:
>>>
>>> if my YUM server has all its updates in
>>> http://192.168.0.5/rhel6pathes/april/
>>>
>>> how do i get the other servers to look at this location and update it
>>> from here?
>>>
>>> Thank you so much.
>>>
>>>
>>>
>>> --
>>> 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 ansible...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/ad7b76e9-6307-46f4-936a-b5cbfc7302e0%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/f0395e8d-460c-4d75-9340-8d7ce6fa1562%40googlegroups.com
> 
> .
>
-- 
Sent from a mobile device - please excuse the brevity, spelling and
punctuation.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwNnBttcaDzpfVE%3DQt46s9oAUHuE6Sk6T%2BECz4Y9rgAoEg%40mail.gmail.com.


Re: [ansible-project] Yum update on multiple hosts but using a cusom repo file

2020-04-21 Thread Quad Zero
Vivek,

Could you actually show that to me in code? I am very new to this. 

Thank you sir.

On Wednesday, April 22, 2020 at 2:50:52 PM UTC+10, Vivek Kothawale wrote:
>
> Hi
>
> You could use variable and reference that variable inside playbook.
> I this way you don't have to repeat on call same path mutiple time instead 
> you can call that variable.
>
> Thanks,
> Vivek
>
> On Wed, Apr 22, 2020, 10:14 AM Quad Zero > 
> wrote:
>
>> G'day all Ansible gurus,
>>
>> I am very new to Ansible and I am learning through youtube videos as I am 
>> enquiring about this problem. It might be a simple one to some of you guys:
>>
>> So I have multiple servers on my System. I have a VM by the name of YUM 
>> which has all the updates (updates folder) on its /var/www/html folder so 
>> it can be referenced from other systems if it was done manually (which is 
>> what i have been doing until now).
>>
>> How do I specify this folder in Ansible to all other hosts?
>>
>> For eg:
>>
>> if my YUM server has all its updates in 
>> http://192.168.0.5/rhel6pathes/april/
>>
>> how do i get the other servers to look at this location and update it 
>> from here?
>>
>> Thank you so much.
>>
>>
>>
>> -- 
>> 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 ansible...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/ad7b76e9-6307-46f4-936a-b5cbfc7302e0%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f0395e8d-460c-4d75-9340-8d7ce6fa1562%40googlegroups.com.


Re: [ansible-project] Yum update on multiple hosts but using a cusom repo file

2020-04-21 Thread Vivek Kothawale
Hi

You could use variable and reference that variable inside playbook.
I this way you don't have to repeat on call same path mutiple time instead
you can call that variable.

Thanks,
Vivek

On Wed, Apr 22, 2020, 10:14 AM Quad Zero  wrote:

> G'day all Ansible gurus,
>
> I am very new to Ansible and I am learning through youtube videos as I am
> enquiring about this problem. It might be a simple one to some of you guys:
>
> So I have multiple servers on my System. I have a VM by the name of YUM
> which has all the updates (updates folder) on its /var/www/html folder so
> it can be referenced from other systems if it was done manually (which is
> what i have been doing until now).
>
> How do I specify this folder in Ansible to all other hosts?
>
> For eg:
>
> if my YUM server has all its updates in
> http://192.168.0.5/rhel6pathes/april/
>
> how do i get the other servers to look at this location and update it from
> here?
>
> Thank you so much.
>
>
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/ad7b76e9-6307-46f4-936a-b5cbfc7302e0%40googlegroups.com
> 
> .
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAA420E-igPYdE6%2Bna8T%3D432YdnEahMtVauK03hhhiLytLAcSdQ%40mail.gmail.com.


[ansible-project] Yum update on multiple hosts but using a cusom repo file

2020-04-21 Thread Quad Zero
G'day all Ansible gurus,

I am very new to Ansible and I am learning through youtube videos as I am 
enquiring about this problem. It might be a simple one to some of you guys:

So I have multiple servers on my System. I have a VM by the name of YUM 
which has all the updates (updates folder) on its /var/www/html folder so 
it can be referenced from other systems if it was done manually (which is 
what i have been doing until now).

How do I specify this folder in Ansible to all other hosts?

For eg:

if my YUM server has all its updates in 
http://192.168.0.5/rhel6pathes/april/

how do i get the other servers to look at this location and update it from 
here?

Thank you so much.



-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ad7b76e9-6307-46f4-936a-b5cbfc7302e0%40googlegroups.com.