Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

WindowsのCP932に苦闘している件

2,437 views

Published on

Ansible Night in Tokyo 2018.04 でのLT発表資料。
https://ansible-users.connpass.com/event/84907

Ansibleから日本語Widows環境を操作する際に、CP932でのコマンド出力が壊れてしまう件とそのワークアラウンドについてです。

Published in: Technology
  • Hello! Get Your Professional Job-Winning Resume Here - Check our website! https://vk.cc/818RFv
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

WindowsのCP932に苦闘している件

  1. 1. WINDOWSのCP932に
 苦闘している件 @REALGLOBE.INC
  2. 2. • @h-hirokawa • • Python • • Ansible + CI • NLP + ML •
  3. 3. ANSIBLE • Ansible • Atom Ansible 
 “autocomplete-ansible” +
  4. 4. WINDOWS WITH ANSIBLE
  5. 5. ANSIBLE WINDOWS • Ansible 2.5 80 Windows • OS Windows … • • • Ansible 1 • raw, script,
  6. 6.
  7. 7. CP932 … * CP932: Shift_JIS Windows Windows SJIS
  8. 8. WIN IPCONFIG 2012R2
  9. 9. • Ansible PowerShell UTF-8 • winrm • • CP932 UTF-8 • stdout.encode(‘utf-8’).decode(‘cp932’)
  10. 10. UNICODE 

  11. 11. RAW 1 • raw • locale 
 … • 

  12. 12. WIN_SHELL NKF 2
  13. 13. 2
  14. 14. 2 • nkf: 30 • @kai2nenobu Chocolatey 
 win_chocolatey 
 https://github.com/kai2nenobu/chocolatey_packages • win_shell nkf • • executable cmd • win_shell Powershell 
 win_command
  15. 15. WIN_COMMAND 3 • Powershell 
 Get-Content • stdout, stderr 
 Get-Content 

  16. 16. Qiita
  17. 17. 
 
 
 Windows Ansible 

  18. 18. IACCInfrastructure as Code https://iacc.doorkeeper.jp

×