<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國際加速解決方案。 廣告
                ## inventory inventor是描述主機的文件。 **localhost**會被ansible自動添加到inventory中,代表本機。 >[info] 在執行的時候會通過本機而不是SSH。 ## inventory行為參數 ~~~ 名稱 默認值 描述 ------------------------------------------------------------------------ ansible_ssh_host none 主機的名字 ansible_ssh_port 22 ssh端口 ansible_ssh_user root ssh登錄使用的用戶名 ansible_ssh_pass none ssh認證使用的密碼 ansible_ssh_private_key_file none ssh認證使用的私鑰 ansible_connection smart Ansible使用何種連接模式 ansible_shell_type /bin/sh 命令行所使用的shell ansible_python_type /usr/bin/python 命令行所使用的shell ~~~ ### 改變行為參數的默認值 ~~~ invetory行為參數 ansible.cfg選項 ------------------------------------------------- ansible_ssh_port remote_port ansible_ssh_user remote_user ansible_ssh_private_key_file private_key_file ansible_shell_type executable ansible_python_type /usr/bin/python ~~~ ## 群組 ansible自動定義了一個群組叫“all”,包括in ventory中的所有主機。 ### 群組嵌套 注意這里的**children** ~~~ [django:children] web task ~~~ ## 主機變量 在inventory中定義主機時,同時定義的變量 ~~~ vagrant1 ansible_ssh_port=222 ~~~ ### 別名和端口 ~~~ 127.0.0.1:2222 128.192.168.1.12:2222 ~~~ ## 組內變量 在inventory中定義`主機組`時,同時定義的變量 ~~~ [all:vars] ntp_sever=cn.ntp.pool.org [productions:vars] db_user=mysql db_password=mysql@123 ~~~ ## 群組的與或非 ~~~yaml webservers:&staging 與 webservers:staging 或 webservers:!staging 非 ~~~
                  <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>

                              哎呀哎呀视频在线观看