Hi I am very newbie with ansible. I have been learning ansible few weeks. I understand basics of ansible. However and maybe this for you is simply trivial, I don't know how to manage the cron tasks of my servers.
Until now, I have tested ansible to make a automatic setup of LEMP stack in ubuntu servers (I mean install nginx, php-fpm, mysql) and also I have used ansible to setup automatically things like ntp, update system package, etc. Definitely thins there are common in most of servers. But with crons is different. I just don't know how to tell ansible the difference between ubuntu server 1 ubuntu server 2 and setup different crontab (for root user ). I have difficulty to decide how to approach this scenario. Creating different templates? cron.ubuntu_1.j2 cron.ubuntu_2.j2 stored in files folder? Having individual playboooks? But these has no sense. I really don't know how to do it. My real scenario is a bunch of centos physical servers a buchf of ubuntu virtual private servers Anyone have any idea? 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 [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
