<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                1.測試連通性 [root@ansible?~]#ansible storm_cluster -m ping 2.批量發布遠程命令 [root@ansible?~]#ansible storm_cluster -m command -a 'uptime' 3.復制文件到遠程主機 [root@ansible?~]#ansible storm_cluster -m copy -a "src=/etc/ansible/ansible.cfg dest=/tmp/ansible.cfg owner=root group=root mode=0644" src為本地文件路徑,dest為目標主機存放路徑 4.遠程重啟服務 [root@ansible?~]#ansiblestorm_cluste -m service -a "name=nginx state=restarted" name是服務名稱 state是執行的操作,有: started\stopped\restarted 5.遠程執行shell腳本 ##將創建的腳本文件分發到遠程 #ansible storm_cluster -m copy -a "src=/tmp/test.sh dest=/tmp/test.sh owner=root group=root mode=0755" ##遠程執行 #ansible storm_cluster -m shell -a "/tmp/test.sh" 6、指定主機列表 ansible -i /etc/ansible/root_201_total root_201_total -m copy -a "src=/etc/profile dest=/etc/profile owner=root group=root mode=0644" 7、批量yum安裝服務 安裝服務: ansible test -m yum -a "name=httpd state=latest" 卸載服務: ansible test -m yum -a "name=httpd state=absent" 安裝新版gcc: yum: name={{ item }} state=present with_items: - gcc - redhat-lsb-core - openssh-server - openssh-clients - python-devel - lrzsz - yum-utils
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看