Is *at* installed on your hosts?

https://docs.ansible.com/ansible/2.5/modules/at_module.html#requirements

On Sat, Aug 21, 2021 at 11:10 PM Vikram S <vikramsunda...@gmail.com> wrote:

> I tried to schdule a script to be run at a particular time as per the
> instruction in documentation for 'at' module. However iam getting below
> error. Not sure what iam doing wrong, please guide.
>
> First, i wrote a script which references another script that need to be
> executed in 5 minutes. Both scripts are in same directory. However when i
> run this script, it shows below error:
>
> i wonder if 'hosts: TESTFIREWALL' is needed as iam not running this script
> on a remote host but i tried adding and removing it yet got error on both
> occassions.
>
> ---
>
> - name: PLAYBOOK
>
>   hosts: TESTFIREWALL
>
>   serial: 1
>
>   gather_facts: false
>
>   connection: network_cli
>
>
>   vars:
>
>     ansible_network_os: asa
>
>
>   tasks:
>
>     - name: Schedule a command to execute in 2 minutes
>
>       at:
>
>         script_file: firewallrules.yaml
>
>         count: 2
>
>         units: minutes
>
>
> ERROR:
>
> TASK [Schedule a command to execute in 5 minutes]
> *******************************************************************************************************************************************
> fatal: [TESTFIREWALL]: FAILED! => {"ansible_facts":
> {"discovered_interpreter_python": "/usr/bin/python"}, "changed": false,
> "msg": "Failed to find required executable at in paths:
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"}
>
>
>
> Below is the firewallrules.yaml script that is referenced in above script:
>
> ---
>
> - name: PLAYBOOK
>
>   hosts: TESTFIREWALL
>
>   serial: 1
>
>   gather_facts: false
>
>   connection: network_cli
>
>
>   vars:
>
>     ansible_network_os: asa
>
>
>   tasks:
>
>     - name: Gather all legacy facts
>
>       cisco.asa.asa_facts:
>
>         gather_subset: hardware
>
> Thanks,
> Vikram
>
>
> --
> 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-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/14e4a2b2-67f5-43ad-a407-897a73a3317cn%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/14e4a2b2-67f5-43ad-a407-897a73a3317cn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CALfBRgEODHrS3Ze6vFrBqWynGZQA%2Bga5AOWwJov-ScrqXNPMMg%40mail.gmail.com.

Reply via email to