Upgrade to Pro — share decks privately, control downloads, hide ads and more …

共通言語「Ansible」

seri
June 02, 2016

 共通言語「Ansible」

「Ansible Meetup in Tokyo 2016.06」での発表資料です。
http://ansible-users.connpass.com/event/31222/

seri

June 02, 2016
Tweet

More Decks by seri

Other Decks in Technology

Transcript

  1. γεςϜΛߏங͢Δ͞·͟·ͳιϑτ΢ΣΞ • 1)1 • 1IBMDPO • OHJOY • .Z42- •

    +BWB • (BUMJOH • 'BCSJD • ;BCCJY • 'MVFOUE • ,JCBOB     FUDʜ
  2. ޙ೔ɾɾɾ • ͜͜ͷઃఆ஋Λม͍͑ͨ • ͜͜΋ม͍͑ͨ • ͜ͷϛυϧ͍Εͯ • ઃఆ஋ڭ͑ͯ •

    ͜͜ม͑ͨʁ • ௥Ճґཔग़ͯ͠ • ͪΐͬͱ଴ͬͯ • ಋೖखॱڭ͑ͯ • ͜ͷࢿྉϝϯςͯ͠ • ͜͜ม͑ͨʁ
  3. ࣗνʔϜͷαʔόௐୡγʔϯ ΠϯϑϥνʔϜ • αʔό༻్ • εϖοΫ • ୆਺ • ΞΧ΢ϯτ

    • ௨৴ཁ݅ • ϛυϧ΢ΣΞཁٻ • Ansibleͷίʔυ ։ൃνʔϜ ֬ೝ ґཔ
  4. 1.9͔Β2.0΁มߋ࣌ͷΤϥʔରԠ • failed to resolve remote temporary directory ͷΤϥʔ •

    https://github.com/ansible/ansible/issues/13876 • ERROR! SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh • http://www.torutk.com/projects/swe/wiki/AnsibleͰSSH઀ଓ [defaults]
 host_key_checking = False 
 [ssh_connection]
 ssh_args = -o ControlMaster=no
 pipelining = True
 scp_if_ssh = True ansible-playbookΛ࣮ߦ͢ΔσΟϨΫτϦʹ ӈهͷansible.cfgΛ഑ஔɻ ղܾࡦ
  5. 1.9͔Β2.0΁มߋ࣌ͷΤϥʔରԠ • failed_whenͱchanged_whenͰϦετ͕࢖͑ͳ͍ • https://github.com/ansible/ansible/issues/13905 failed_when: - "'pecl/zip is already

    installed' not in task_result.stdout" - "task_result.rc == 0" changed_when: - "'pecl/zip is already installed' not in task_result.stdout" - "task_result.rc != 0" failed_when: '"pecl/zip is already installed" not in task_result.stdout and task_result.rc != 0' changed_when: '"pecl/zip is already installed" not in task_result.stdout and task_result.rc == 0'