共通言語「Ansible」

4ee67506d99fd4d363bc178dea584105?s=47 seri
June 02, 2016

 共通言語「Ansible」

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

4ee67506d99fd4d363bc178dea584105?s=128

seri

June 02, 2016
Tweet

Transcript

  1. 2.

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

    +BWB • (BUMJOH • 'BCSJD • ;BCCJY • 'MVFOUE • ,JCBOB     FUDʜ
  2. 14.

    ޙ೔ɾɾɾ • ͜͜ͷઃఆ஋Λม͍͑ͨ • ͜͜΋ม͍͑ͨ • ͜ͷϛυϧ͍Εͯ • ઃఆ஋ڭ͑ͯ •

    ͜͜ม͑ͨʁ • ௥Ճґཔग़ͯ͠ • ͪΐͬͱ଴ͬͯ • ಋೖखॱڭ͑ͯ • ͜ͷࢿྉϝϯςͯ͠ • ͜͜ม͑ͨʁ
  3. 17.

    ࣗνʔϜͷαʔόௐୡγʔϯ ΠϯϑϥνʔϜ • αʔό༻్ • εϖοΫ • ୆਺ • ΞΧ΢ϯτ

    • ௨৴ཁ݅ • ϛυϧ΢ΣΞཁٻ • Ansibleͷίʔυ ։ൃνʔϜ ֬ೝ ґཔ
  4. 34.
  5. 36.

    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Λ഑ஔɻ ղܾࡦ
  6. 37.

    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'