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

2020-04-23 Thread Ricardo Amaral
les:` 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

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

2020-04-23 Thread Ricardo Amaral
obably 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 can just put >> "pre" tasks befo

[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?

[ansible-project] How to mix a reboot handler with a service restart handler in the same Ansible playbook?

2020-04-19 Thread Ricardo Amaral
I'm writing an Ansible playbook to set up my Raspberry Pi so that I can keep a versioned configuration and a way for me to quickly get a Pi up and running in case I need to reset it or start from scratch. This playbook has a bunch of tasks where some of them (very few) notify a handler to