ansible-2.x

    0熱度

    1回答

    我有playbook,其中包括。也var_prompt「name_VM」我需要在包括劇本「新vm.yml」傳遞變量,但我有錯誤: TASK [hostname] **************************************************************** fatal: [192.168.250.102]: FAILED! => {"failed": true,

    4熱度

    1回答

    我的繼承人,如果別人Ansible邏輯.. - name: Check certs exist stat: path=/etc/letsencrypt/live/{{ rootDomain }}/fullchain.pem register: st - include: ./_common/check-certs-renewable.yaml when: st.s

    -1熱度

    1回答

    在ansible中迭代集合時出現什麼問題? 當執行ansible-playbook -i "localhost," -c local main.yml誤差 - name: echo kerberos shell: echo "addprinc -pw {{ item.password }} {{ item.username }}" ^here We could be w

    5熱度

    2回答

    說我有這個詞典 war_files: server1: - file1.war - file2.war server2: - file1.war - file2.war - file3.war 和現在我只想遍歷每個項目(鍵),然後在上的鍵(值),每個項目。我做到了這一點 - name: Loop over the dicti

    0熱度

    2回答

    我試圖與項目使用include_role意外數字環路 --- - hosts: cluster tasks: - block: - name: Execute test role include_role: name: testrole with_items: - 'one' ... 我的角色是 --- -

    1熱度

    1回答

    我有以下任務: - name: Upgrade all packages (Debian family) become: true apt: upgrade: safe update_cache: yes autoremove: yes 這一點我不清楚這是否會運行升級和的autoremove兩者。 我已經測試過這個任務,它不會產生任何錯誤,但我

    1熱度

    1回答

    我有ansible 2.2.1.0和我有這樣的作用: - block: - shell: echo 1 - shell: fail - shell: echo 2 rescue: - shell: echo 3 always: - shell: echo 4 - name: running something after t

    0熱度

    1回答

    如果變量yml文件中的Ansible變量設置爲https: off,則應跳過以下代碼。 default_setup.yml: # Other info ansible_cache_dir: /var/cache/ansible https: off provision.yml: --- - hosts: webclient vars_files: - default_

    2熱度

    1回答

    在AWS中,我有一個VPC和一個路由表。我創建了最小的劇本來刪除它,它看起來像這樣: --- - hosts: localhost connection: local tasks: - name: Delete routing table ec2_vpc_route_table: vpc_id: "vpc-db5a65bf" ro

    0熱度

    1回答

    我想使用Ansible自動安裝PostgreSQL數據庫。 但是,下面的任務: - name: Initialize Postgres command: /usr/pgsql-9.6/bin/postgresql96-setup initdb become: true 導致此錯誤: fatal: [nexus-staging.chop.edu]: FAILED! => {