<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>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                #### 循環語法(列表) 一次安裝多個軟件 ```yaml --- - hosts: all tasks: - name: debug loops debug: msg="{{item}}" with_items: - one - tow - three - four ``` #### 循環語法(字典) ```yaml --- - hosts: all tasks: - name: debug dict debug: msg="name-->{{item.key}} value-->{{item.value}}" with_items: - {key: "one", value: "v1"} - {key: "two", value: "v2"} ``` #### 嵌套循環 注意關鍵字變化 ```yaml --- - hosts: all tasks: - name: debug dict debug: msg="name->{{item[0]}} value->{{item[1]}}" with_nested: - ['A', 'B'] - ['a', 'b', 'c'] ``` #### 散列循環(失敗) ```yaml --- - hosts: all gather_facts: no vars: user: sheng: name: ding shell: bash ceshi: name: zhang shell: zsh tasks: - name: debug shell debug: msg="{{item.key}}" with_dict: "{{user}}" ``` #### 文件循環 ```yaml --- - hosts: all gather_facts: false tasks: - name: loop file debug: msg="{{item}}" with_fileglob: - /etc/ansible/playbook/*.yml ``` #### 判斷語句 判斷文件第一行是不是abc ```yaml --- - hosts: all gather_facts: no tasks: - name: debug loop judgement shell: cat /tmp/abc register: hosts until: hosts.stdout.startswith("abc") retries: 5 delay: 5 ```
                  <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>

                              哎呀哎呀视频在线观看