humiaozuzu
V2EX  ›  问与答

ansible 执行一连串任务一直失败

  •  
  •   humiaozuzu · Feb 17, 2014 · 4103 views
    This topic created in 4495 days ago, the information mentioned may be changed or developed.
    执行的一连串任务中,有各种网络方面的安装任务,比如 pip/gem/git clone 下载各种包安装,但是执行中在各种网络下载时经常失败(VPS 网络没有问题),ansible 每次停下来后都要重新执行所有任务,但是每一次总有那么一个网络任务会挂。。。

    这时候怎么办呢?ansible 的配置文件看起来是clone到临时的目录里面安装的
    3 replies    2016-03-21 12:46:35 +08:00
    clino
        1
    clino  
       Feb 17, 2014
    那你在这一连串的任务执行中有可能出现失败的步骤内做重试?
    mephisto
        2
    mephisto  
       Feb 17, 2014
    playbook贴出来,为什么会每次重新执行所有任务?加个tags就可以制定运行哪个小task。
    mouer
        3
    mouer  
       Mar 21, 2016
    ansible-playbook playbook.yml --start-at="xxx"
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3324 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 12:46 · PVG 20:46 · LAX 05:46 · JFK 08:46
    ♥ Do have faith in what you're doing.