之前為了能夠在執行完 ansible playbook 後,能有個log 可以看
所以在每次執行的時候,都要加入 tee 的指令
像是
ANSIBLE_CONFIG=/home/D/ansiblecontrol/ansible.cfg /usr/local/bin/ansible-playbook /home/D/ansiblecontrol/playbook.user_client.yml --vault-password-file=/home/D/ansiblecontrol/vault.passwd -i /home/D/ansiblecontrol/inventory/production -f1 --limit tyuserclients |tee /tmp/tyuserclients.log
一直都是放在crontab 裡面執行,也就沒有去管他
反正也沒有人關心結果怎樣 (攤手