I want to execute my playbooks on scheduled basis. i used ansible at module
for this. below is the sample playbook running git version for testing
purpose.
---
- hosts: localhost
tasks:
- name: Schedule a command to execute in 5 minutes
at:
command: git --version
count: 5
units: minutes
when i execute the above i am getting the error.
PLAY [localhost]
********************************************************************************************************************************************
TASK [Gathering Facts]
**************************************************************************************************************************************
ok: [localhost]
TASK [Schedule a command to execute in 5 minutes]
*************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to find
required executable at in paths:
/root/.linuxbrew/bin:/etc/ansible:/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/etc/ansible:/root/bin"}
to retry, use: --limit @/etc/ansible/sch.retry
PLAY RECAP
**************************************************************************************************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=1
I can use linux cron for this, but looking for ansible dedicated module to
perform same. please help.
Regards,
Sreenivas Reddy
--
You received this message because you are subscribed to the Google Groups
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.