ZhangZhihui's Blog |
|
||
2020年12月14日
摘要:
[WARNING]: Consider using the replace, lineinfile or template module rather than running 'sed'. If you need to use command because replace, lineinfile 阅读全文
摘要:
scnzzh@ZUBT1:~/zzh$ cat test.yml - name: Test Play hosts: zubt1 tasks: - name: test shell: pwd register: result - debug: msg: "{{ result.stdout }}" sc 阅读全文
摘要:
- hosts: zubt1 tasks: - name: Get current user shell: whoami register: current_user_nobecome - name: Get current user with become is true shell: whoam 阅读全文
|
Copyright © 2024 ZhangZhihuiAAA
Powered by .NET 9.0 on Kubernetes |