fatal: [101.251.194.102]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host 101.251.194.102 port 22: Connection refusedrn", "unreachable": true}
ansible_ssh_port=60001
- hosts: zss tasks: - name: step1 ping: - name: step2 统计 shell: egrep KFQX /etc/sudoers|wc -l ignore_errors: True register: check_value - name: step3 shell: echo "Cmnd_Alias KFQX =/usr/local/bin/supervisorctl, /usr/bin/supervisorctl, /bin/cat, /bin/ls, /usr/bin/head, /usr/bin/tail, /bin/grep, /usr/local/php/bin/php, /usr/bin/crontab, /usr/bin/python2.7, /usr/bin/python, /usr/bin/python3, /usr/bin/svn" >>/etc/sudoers when: check_value.stdout|int < 1
转载于:https://www.cnblogs.com/gaoyuechen/p/9674033.html
相关知识
区块链案例实践报告
基于stm32的远程监控喂食器
应急响应靶场练习Linux
确定sw1开关信号输入端口
Windows CMD命令大全(快速上手)
simon
基于Vue3+Node Koa+WebSocket实现的“宠物收养交流平台”这是一个宠物收养交流平台web应用,主要分为
蓝队防守方战前准备篇(上)
应急响应靶场(近源渗透OS
6.6
网址: ansible 配置了端口在host文件但是还要走22 ip:60001 ansible https://m.mcbbbk.com/newsview263024.html
上一篇: 新沂城市论坛『 宠物天地 』家养 |
下一篇: 精灵宝可梦=宠物小精灵?不,我不 |