Ansible modules -  win_command vs win_shell

Поділитися
Вставка
  • Опубліковано 11 вер 2024

КОМЕНТАРІ • 5

  • @RajMohanUdupi
    @RajMohanUdupi Рік тому

    Hi AP, I have a requirement to open cmd as Adminstrator on the remote machine and run specific commands with the absolute path, Could you please guide us in this

    • @BertonLuca
      @BertonLuca  Рік тому

      You might love the code example in this page: docs.ansible.com/ansible/latest/collections/ansible/windows/win_shell_module.html

  • @Aman-sn8lr
    @Aman-sn8lr 2 роки тому

    How to set env variable in windows hosts using ansible playbook?

    • @BertonLuca
      @BertonLuca  2 роки тому

      Hello Aman, have you tried the env statement? ua-cam.com/video/98qqy--E0oU/v-deo.html Please let me know if you need any specific Ansible module