添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
完美的馒头  ·  DipSO / eosc-pillar / ...·  1 月前    · 
有情有义的葡萄酒  ·  GitLab: suddenly I ...·  4 周前    · 
打盹的稀饭  ·  配置说明 | Gitea ...·  3 周前    · 
温暖的汤圆  ·  Docker Remote ...·  6 天前    · 
刚毅的火车  ·  Connecting to F5 ...·  5 天前    · 
逆袭的生菜  ·  机械工程学院·  7 月前    · 
曾深爱过的手链  ·  ERROR: Command ...·  10 月前    · 
犯傻的海龟  ·  SR Max Product Search ...·  10 月前    · 

Forum Discussion

AHS
Icon for Nimbostratus rank Nimbostratus
Apr 30, 2023

Connecting to F5 using SSH via Ansible

I am in the process of writing a playbook which uses SSH to connect to F5 and run a bash command (ntpdate -d time_server) to confirm NTP connectivity across the environment. For SSH I am using root. Here is the task that I have in the playbook.

- name: "Check NTP on {{override_host}}"
vars:
ansible_connection: ssh
ansible_user: "root"
ansible_password: "{{root_pwd}}"
ansible_ssh_private_key_file: "~/.ssh/f5-ansible-ssh"
command:
cmd: ntpdate -d {{item}}
loop: "{{new_ntp_servers}}"
register: ntp_status
The error message that I get is as follows
MSG:
The module failed to execute correctly, you probably need to set the interpreter.
See stdout/stderr for the exact error

MODULE_STDOUT:
/bin/sh: /usr/local/bin/python3.9: No such file or directory

MODULE_STDERR:
******************************* IMPORTANT NOTE ******************************
Banner
*****************************************************************************
Shared connection to ltm closed.

Any help would be greatly appreciated...