[ansible-project] Ansible mail callback

2020-04-23 Thread rajthecomputerguy
Hi Team, How to configure mail callback to generate the report as email for failed jobs? Thanks -- 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-pr

[ansible-project] Ansible reboot

2020-04-23 Thread דודו דודו
How does ansible reboot work? Is it going group by group? Does it reboot the servers in the first group waits for them to go up and only then starting with the second group? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe fro

Re: [ansible-project] Ansible reboot

2020-04-23 Thread Stefan Hornburg (Racke)
On 4/23/20 9:38 AM, דודו דודו wrote: > How does ansible reboot work? > > Is it going group by group? Does it reboot the servers in the first group > waits for them to go up and only then starting > with the second group? > Which kind of groups are you referring to? Regards Racke > --

[ansible-project] Re: Ansible reboot

2020-04-23 Thread דודו דודו
Group in Hosts file hosts: - worker - master - etc On Thursday, April 23, 2020 at 10:38:57 AM UTC+3, דודו דודו wrote: > > How does ansible reboot work? > > Is it going group by group? Does it reboot the servers in the first group > waits for them to go up and only then starting wit

Re: [ansible-project] Re: Ansible reboot

2020-04-23 Thread Stefan Hornburg (Racke)
On 4/23/20 10:53 AM, דודו דודו wrote: > Group in Hosts file > > hosts: >     -  worker >     -  master >     - etc Like for any other task, Ansible is going to run the task in parallel for all host in the play (to my knowledge). You can change that with the "serial" keyword: --- - name: test p

[ansible-project] Re: Ansible reboot

2020-04-23 Thread דודו דודו
Thank you. On Thursday, April 23, 2020 at 10:38:57 AM UTC+3, דודו דודו wrote: > > How does ansible reboot work? > > Is it going group by group? Does it reboot the servers in the first group > waits for them to go up and only then starting with the second group? > -- You received this message b

[ansible-project] Playbook hang when running reboot on 16 servers

2020-04-23 Thread דודו דודו
Hi, I have an ansible task that includes the reboot model. In my environment I have 16 servers, When I run the playbook it looks that all 16 servers were rebooted, but the playbook hang after the last reported server. I needed to use CTRL + C in order to release the shell I did the same test w

Re: [ansible-project] How to run 2 playbooks in parallel using a master playbook and monitor for any error

2020-04-23 Thread Vivek Kothawale
Hi You can use strategy as free inside play and call multiple playbooks by using include option in ansible Thanks, Vivek On Wed, Apr 22, 2020, 7:38 PM Happy Souls wrote: > Hi, > > I would appreciate if someone could share a simple example of running 2 > playbooks running in parallel, called in

[ansible-project] Has anyone connected Riverbed (network device) thru Ansible?

2020-04-23 Thread rajthecomputerguy
Hi Team, Has anyone connected Riverbed (network device) thru Ansible? like using command module or cli_command. Thanks -- 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

[ansible-project] Connecting Riverbird through Ansibe

2020-04-23 Thread rajthecomputerguy
Hi Team, Has anyone connected Riverbed (network device) thru Ansible? like using command module or cli_command. Thanks -- 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

Re: [ansible-project] Playbook hang when running reboot on 16 servers

2020-04-23 Thread Vladimir Botka
> all 16 servers were rebooted, but the playbook hang after the last reported > server. I needed to use CTRL + C in order to release the shell > [...] > - name: Server reboot > reboot: > - name: Verify that all hosts are reachable > ping: > [...] > <10.201.55.18> (0, 'root\r\n

[ansible-project] Meta dependancies and template

2020-04-23 Thread Quentin Aveno
Hi everyone, little question here : Did a template in a role can be used/seen by another role in the meta of the first one? -- 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, sen

Re: [ansible-project] How to extract one attribute from a list of dictionaries

2020-04-23 Thread SandeepK
Can we give the same information in hosts file and still work? On Tuesday, April 21, 2020 at 11:55:02 AM UTC-4, Dick Visser wrote: > > just to make sure - this is a list of list of dictionaries. > If this is your source of truth, and you intend to have a list of dicts, > then it could look like t

[ansible-project] Cant get ansible to properly route through bastion host

2020-04-23 Thread Emil Safonov
Hey Everyone, I've been having difficulty getting my ansible playbooks to route through a bastion host (without ssh keys). For testing I have a cisco virl (virtual internet routing lab) simulation up and running with virtualized network devices, and the bastion host should be the server that is

[ansible-project] What's really the purpose of pre_tasks and post_tasks?

2020-04-23 Thread Ricardo Amaral
What exactly is the purpose of pre_tasks/post_tasks when one can just put "pre" tasks before the main tasks and "post" tasks after the main tasks in the "tasks" directive? I've read the documentation many times and I can't understand the need for them. I must be missing something here, right?

Re: [ansible-project] What's really the purpose of pre_tasks and post_tasks?

2020-04-23 Thread Matt Martz
Primarily they were introduced to provide execution order when using `roles:`. `post_tasks` is probably mostly useless. The execution order is: pre_tasks roles tasks post_tasks On Thu, Apr 23, 2020 at 4:05 PM Ricardo Amaral wrote: > What exactly is the purpose of pre_tasks/post_tasks when one

Re: [ansible-project] What's really the purpose of pre_tasks and post_tasks?

2020-04-23 Thread Ricardo Amaral
What exactly is the purpose of roles then? 😅 I mean, is there a difference between roles and use include_role / import_role inside tasks? On Thu, 23 Apr 2020, 22:08 Matt Martz, wrote: > Primarily they were introduced to provide execution order when using > `roles:`. `post_tasks` is probably mo

Re: [ansible-project] What's really the purpose of pre_tasks and post_tasks?

2020-04-23 Thread Matt Martz
`roles:` existed long before `include_role` and `import_role`. Many on the core team would say that `import_role` and `include_role` are the future. I personally would like to see `pre_tasks`, `roles`, and `post_tasks` deprecated. Time will tell... On Thu, Apr 23, 2020 at 4:11 PM Ricardo Amaral

Re: [ansible-project] What's really the purpose of pre_tasks and post_tasks?

2020-04-23 Thread Ricardo Amaral
So, in other words, with include_role, import_role, and tasks, one can do pretty much anything that roles, pre_tasks and post_tasks can do as well, right? Thank you so much for your help, that clarifies things for me :) Stay safe! On Thu, 23 Apr 2020, 22:16 Matt Martz, wrote: > `roles:` existe

Re: [ansible-project] F5 Policy with Multiple Rules

2020-04-23 Thread Sharon Day
Thanks you for the help. I guess I was maker it harder than it was. Its all working now. On Wednesday, April 1, 2020 at 1:25:24 AM UTC-4, Dick Visser wrote: > > By adding an extra key: > > rules: > - name: rule1 > policy: Policy-Foo > actions: > - type: forward >

Re: [ansible-project] How to extract one attribute from a list of dictionaries

2020-04-23 Thread Dick Visser
what do you mean. Examples with code? On Thu, 23 Apr 2020 at 20:15, SandeepK wrote: > Can we give the same information in hosts file and still work? > > > On Tuesday, April 21, 2020 at 11:55:02 AM UTC-4, Dick Visser wrote: > >> just to make sure - this is a list of list of dictionaries. >> If th