我想使用 cat 以 ansible 打印出文本文件的结果。这是我的代码。
tasks:
- name: This option
script: "./getIt.py -s {{ myhostname }} -u {{ myuser }} -p {{ mypass }} >> ./It.txt"
shell: cat ./It.txt
when: user_option == 'L'
Run Code Online (Sandbox Code Playgroud)
然而这行不通。我究竟做错了什么?