Brian, Please pardon my question it may sound stupid but i really want to learn this but dont have a grasp of this yet as i am very new to linux, where do i place this command " 0 4 * * * /usr/bin/ansible-playbook /path/to/mybackupplay.yml .... " is it going to be a file or i run it on the command line in ubuntu. maybe an example would make this a little more clear to me. maybe a simple yaml script and a cron job to run the yaml script on a schedule. if this is not too much to ask i will appreciate it a lot. thanks
On Mon, Sep 25, 2017 at 7:31 AM, Brian Coca <[email protected]> wrote: > ansible-playbook is a 'unix command line utility' you can schedule it > in cron as you would do any other, just pass it the options it needs: > > 0 4 * * * /usr/bin/ansible-playbook /path/to/mybackupplay.yml .... > > > Also, you can make your play an 'executable script' by setting the x > permission bits on the playbook file and having ansible-playbook in > the shebang: > > #!/usr/bin/ansible-playbook > > - hosts: localhost > .... > > > -- > ---------- > Brian Coca > > -- > 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]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/ansible-project/CACVha7duAqto9MEtkmj%3D0VYR% > 3DDFqUQ-aQ1rDdBzas_rqe_xW3Q%40mail.gmail.com. > For more options, visit https://groups.google.com/d/optout. > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAO%3Dgc2gdX7NAQs%2BbHhPEh%2B8ofhjmS2pd%3Di_ZiKPm2i7Lpsjy-g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
