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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/14e4a2b2-67f5-43ad-a407-897a73a3317cn%40googlegroups.com.

Reply via email to