jixian.yaml

2022-03-03  本文已影响0人  秋天丢了李姑娘

---

- hosts: all

  gather_facts: no

  tasks:

  - name: transfer file to server

    copy: src=/home/yx_lichao2/jixian/66c221be-6ab2-ef53-1589-fe16877914f4.pl dest=/tmp mode=755

  - name: transfer 2file to server

    copy: src=/home/yx_lichao2/jixian/66c221be-6ab2-ef53-1589-fe16877914f4.sh dest=/tmp mode=755   

  - name: zhixing

    shell: cd /tmp;sh /tmp/66c221be-6ab2-ef53-1589-fe16877914f4.sh

    ignore_errors: True

  - name: fetch fiel to local

    fetch:  src=/tmp/{{inventory_hostname}}_66c221be-6ab2-ef53-1589-fe16877914f4_chk.xml dest=/home/yx_lichao2/jixian/result/20211118/ flat=yes

上一篇 下一篇

猜你喜欢

热点阅读