--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/adb5acd6-9221-42c5-b0cd-313edafa3e38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
In my example I have a backup role. It would like to know the path where the apache-role stores websites by default so that it can back them up. Lets say the apache role stores this variable as `apache_sites_dir` in its default/main.yml (and of course it can be specified as well in inentory vars).
So I currently have the backup role depending on the apache role to glean this variable (I thought conventional). I didn't like this approach because it runs apache tasks -- so I added the skip_task garbage.
Is explicitly loading apache's agreeable in this situation? e.g.
:: backup/tasks/main.yml ::
- name: detect apache sites location
include_vars: "'path/apache/defaults/main.yml"when: apache_sites_dir is not defined
I'm curious why you would do this (not because there is anything inherently wrong with it, but I'm wondering what your thinking is here).
--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3658e1c3-c30e-4451-baa8-afb1d255b0b4%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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJQqANcnyQe%2Bj8LXgnL%3D10BX9kT4Ty2aUG3bJ65npopc4CJO-Q%40mail.gmail.com.
Just put it in the configuration file for the backup tool/script. No need to sprinkle this throughout the playbook IMHO.
Is there a reason no to backup, say, /etc, /home, /srv and /var/www?
Maciej
--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/8669a164-7cf1-4477-9f4f-bed0839d3c0f%40googlegroups.com.
Is there a reason no to backup, say, /etc, /home, /srv and /var/www?
Maciej
This is very good solution too (my nginx role also accounts for this). I would also provide sane default values whenever possible via role/defaults/main.yml to not force configuration upon user if not necessary.
Maciej
> --
> Morgan Hamill
>
> --
> 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-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1401308228-sup-6309%40al.wesleyan.edu.
Otherwise you are backing up only the things that ansible has known it changed, which doesn't include things that the software could have changed by itself (databases) or users logging in.
--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0a7d3cc6-8fd4-4188-a688-dcd776f3ba7d%40googlegroups.com.