<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>merrywhite</author_name>
  <author_url>https://blog.hatena.ne.jp/merrywhite/</author_url>
  <blog_title>CAFE BREAK</blog_title>
  <blog_url>https://cafebreak.hatenablog.com/</blog_url>
  <categories>
    <anon>Windows</anon>
  </categories>
  <description>Ansible WindowServerでカレントディレクトリを移動してコマンド、batファイルを実行する方法に関する情報です。 あるバッチファイルを実行したところ、作りの問題か、絶対パスでそのバッチファイルを実行してもNGで、エラーが返ってきました。 よって、カレントディレクトリを移動してバッチを実行してあげる必要がありました。 まず、参考になるのが公式の情報です。 win_command – Executes a command on a remote Windows node — Ansible Documentation サンプルです。 Examples- name: Save the…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcafebreak.hatenablog.com%2Fentry%2F2024%2F01%2F29%2F054954&quot; title=&quot;Ansible WindowServerでカレントディレクトリを移動してコマンド、batファイルを実行 - CAFE BREAK&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://m.media-amazon.com/images/I/51LxGzCUt5L._SS160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-01-29 05:49:54</published>
  <title>Ansible WindowServerでカレントディレクトリを移動してコマンド、batファイルを実行</title>
  <type>rich</type>
  <url>https://cafebreak.hatenablog.com/entry/2024/01/29/054954</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
