Hide python error message when ending ansible playbook with CTRL+C Unicorn Meta Zoo #1: Why...

Like totally amazing interchangeable sister outfit accessory swapping or whatever

Suing a Police Officer Instead of the Police Department

How do I deal with an erroneously large refund?

Stretch a Tikz tree

Why isn't everyone flabbergasted about Bran's "gift"?

What happened to Viserion in Season 7?

Coin Game with infinite paradox

Does using the Inspiration rules for character defects encourage My Guy Syndrome?

What is the ongoing value of the Kanban board to the developers as opposed to management

When I export an AI 300x60 art board it saves with bigger dimensions

How to keep bees out of canned beverages?

How to translate "red flag" into Spanish?

Why doesn't the university give past final exams' answers?

In search of the origins of term censor, I hit a dead end stuck with the greek term, to censor, λογοκρίνω

What is the purpose of the side handle on a hand ("eggbeater") drill?

Does a Draconic Bloodline sorcerer's doubled proficiency bonus for Charisma checks against dragons apply to all dragon types or only the chosen one?

What is /etc/mtab in Linux?

Protagonist's race is hidden - should I reveal it?

Can gravitational waves pass through a black hole?

What's parked in Mil Moscow helicopter plant?

All ASCII characters with a given bit count

Was Objective-C really a hindrance to Apple software development?

Will I lose my paid in full property

Has a Nobel Peace laureate ever been accused of war crimes?



Hide python error message when ending ansible playbook with CTRL+C



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
Come Celebrate our 10 Year Anniversary!Recompiling python with SSL support on ubuntuAnsible playbook to upload and execute a python scriptAnsible Playbook With Inventory-based Taskslocal ansible-playbook run playbook with vars for roleansible-playbook with group_varserror while playing ansible playbookAnsible can't git clone from enterprise git serverChecking python version through ansible results into errorAnsible throwing errors while installing packages via apt and yumAnsible Playbook and syntax issue with variables





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















Whenever I terminate an ansible playbook using ctrl+c, it shows the following python error message, both on macOS and Ubuntu:



^CProcess WorkerProcess-22:
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/usr/local/lib/python3.7/site-packages/ansible/executor/process/worker.py", line 118, in run
self._final_q
File "/usr/local/lib/python3.7/site-packages/ansible/executor/task_executor.py", line 140, in run
res = self._execute()
File "/usr/local/lib/python3.7/site-packages/ansible/executor/task_executor.py", line 612, in _execute
result = self._handler.run(task_vars=variables)
File "/usr/local/lib/python3.7/site-packages/ansible/plugins/action/shell.py", line 27, in run
result = command_action.run(task_vars=task_vars)
File "/usr/local/lib/python3.7/site-packages/ansible/plugins/action/command.py", line 24, in run
results = merge_hash(results, self._execute_module(task_vars=task_vars, wrap_async=wrap_async))
File "/usr/local/lib/python3.7/site-packages/ansible/plugins/action/__init__.py", line 840, in _execute_module
res = self._low_level_execute_command(cmd, sudoable=sudoable, in_data=in_data)
File "/usr/local/lib/python3.7/site-packages/ansible/plugins/action/__init__.py", line 959, in _low_level_execute_command
rc, stdout, stderr = self._connection.exec_command(cmd, in_data=in_data, sudoable=sudoable)
File "/usr/local/lib/python3.7/site-packages/ansible/plugins/connection/local.py", line 133, in exec_command
stdout, stderr = p.communicate(in_data)
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 939, in communicate
stdout, stderr = self._communicate(input, endtime, timeout)
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 1681, in _communicate
ready = selector.select(timeout)
File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/selectors.py", line 415, in select
fd_event_list = self._selector.poll(timeout)
KeyboardInterrupt


Is there a way I could hide this? I am writing a cli-based application to be used on mac, Ubuntu, and Windows, and I need to hide this error log, but can't seem to find a way, neither in ansible nor in Python.









share







New contributor




sadmansh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



























    0















    Whenever I terminate an ansible playbook using ctrl+c, it shows the following python error message, both on macOS and Ubuntu:



    ^CProcess WorkerProcess-22:
    Traceback (most recent call last):
    File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
    File "/usr/local/lib/python3.7/site-packages/ansible/executor/process/worker.py", line 118, in run
    self._final_q
    File "/usr/local/lib/python3.7/site-packages/ansible/executor/task_executor.py", line 140, in run
    res = self._execute()
    File "/usr/local/lib/python3.7/site-packages/ansible/executor/task_executor.py", line 612, in _execute
    result = self._handler.run(task_vars=variables)
    File "/usr/local/lib/python3.7/site-packages/ansible/plugins/action/shell.py", line 27, in run
    result = command_action.run(task_vars=task_vars)
    File "/usr/local/lib/python3.7/site-packages/ansible/plugins/action/command.py", line 24, in run
    results = merge_hash(results, self._execute_module(task_vars=task_vars, wrap_async=wrap_async))
    File "/usr/local/lib/python3.7/site-packages/ansible/plugins/action/__init__.py", line 840, in _execute_module
    res = self._low_level_execute_command(cmd, sudoable=sudoable, in_data=in_data)
    File "/usr/local/lib/python3.7/site-packages/ansible/plugins/action/__init__.py", line 959, in _low_level_execute_command
    rc, stdout, stderr = self._connection.exec_command(cmd, in_data=in_data, sudoable=sudoable)
    File "/usr/local/lib/python3.7/site-packages/ansible/plugins/connection/local.py", line 133, in exec_command
    stdout, stderr = p.communicate(in_data)
    File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 939, in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)
    File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 1681, in _communicate
    ready = selector.select(timeout)
    File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/selectors.py", line 415, in select
    fd_event_list = self._selector.poll(timeout)
    KeyboardInterrupt


    Is there a way I could hide this? I am writing a cli-based application to be used on mac, Ubuntu, and Windows, and I need to hide this error log, but can't seem to find a way, neither in ansible nor in Python.









    share







    New contributor




    sadmansh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      Whenever I terminate an ansible playbook using ctrl+c, it shows the following python error message, both on macOS and Ubuntu:



      ^CProcess WorkerProcess-22:
      Traceback (most recent call last):
      File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
      self.run()
      File "/usr/local/lib/python3.7/site-packages/ansible/executor/process/worker.py", line 118, in run
      self._final_q
      File "/usr/local/lib/python3.7/site-packages/ansible/executor/task_executor.py", line 140, in run
      res = self._execute()
      File "/usr/local/lib/python3.7/site-packages/ansible/executor/task_executor.py", line 612, in _execute
      result = self._handler.run(task_vars=variables)
      File "/usr/local/lib/python3.7/site-packages/ansible/plugins/action/shell.py", line 27, in run
      result = command_action.run(task_vars=task_vars)
      File "/usr/local/lib/python3.7/site-packages/ansible/plugins/action/command.py", line 24, in run
      results = merge_hash(results, self._execute_module(task_vars=task_vars, wrap_async=wrap_async))
      File "/usr/local/lib/python3.7/site-packages/ansible/plugins/action/__init__.py", line 840, in _execute_module
      res = self._low_level_execute_command(cmd, sudoable=sudoable, in_data=in_data)
      File "/usr/local/lib/python3.7/site-packages/ansible/plugins/action/__init__.py", line 959, in _low_level_execute_command
      rc, stdout, stderr = self._connection.exec_command(cmd, in_data=in_data, sudoable=sudoable)
      File "/usr/local/lib/python3.7/site-packages/ansible/plugins/connection/local.py", line 133, in exec_command
      stdout, stderr = p.communicate(in_data)
      File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 939, in communicate
      stdout, stderr = self._communicate(input, endtime, timeout)
      File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 1681, in _communicate
      ready = selector.select(timeout)
      File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/selectors.py", line 415, in select
      fd_event_list = self._selector.poll(timeout)
      KeyboardInterrupt


      Is there a way I could hide this? I am writing a cli-based application to be used on mac, Ubuntu, and Windows, and I need to hide this error log, but can't seem to find a way, neither in ansible nor in Python.









      share







      New contributor




      sadmansh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      Whenever I terminate an ansible playbook using ctrl+c, it shows the following python error message, both on macOS and Ubuntu:



      ^CProcess WorkerProcess-22:
      Traceback (most recent call last):
      File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
      self.run()
      File "/usr/local/lib/python3.7/site-packages/ansible/executor/process/worker.py", line 118, in run
      self._final_q
      File "/usr/local/lib/python3.7/site-packages/ansible/executor/task_executor.py", line 140, in run
      res = self._execute()
      File "/usr/local/lib/python3.7/site-packages/ansible/executor/task_executor.py", line 612, in _execute
      result = self._handler.run(task_vars=variables)
      File "/usr/local/lib/python3.7/site-packages/ansible/plugins/action/shell.py", line 27, in run
      result = command_action.run(task_vars=task_vars)
      File "/usr/local/lib/python3.7/site-packages/ansible/plugins/action/command.py", line 24, in run
      results = merge_hash(results, self._execute_module(task_vars=task_vars, wrap_async=wrap_async))
      File "/usr/local/lib/python3.7/site-packages/ansible/plugins/action/__init__.py", line 840, in _execute_module
      res = self._low_level_execute_command(cmd, sudoable=sudoable, in_data=in_data)
      File "/usr/local/lib/python3.7/site-packages/ansible/plugins/action/__init__.py", line 959, in _low_level_execute_command
      rc, stdout, stderr = self._connection.exec_command(cmd, in_data=in_data, sudoable=sudoable)
      File "/usr/local/lib/python3.7/site-packages/ansible/plugins/connection/local.py", line 133, in exec_command
      stdout, stderr = p.communicate(in_data)
      File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 939, in communicate
      stdout, stderr = self._communicate(input, endtime, timeout)
      File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 1681, in _communicate
      ready = selector.select(timeout)
      File "/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/lib/python3.7/selectors.py", line 415, in select
      fd_event_list = self._selector.poll(timeout)
      KeyboardInterrupt


      Is there a way I could hide this? I am writing a cli-based application to be used on mac, Ubuntu, and Windows, and I need to hide this error log, but can't seem to find a way, neither in ansible nor in Python.







      python ansible





      share







      New contributor




      sadmansh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      sadmansh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      sadmansh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 9 mins ago









      sadmanshsadmansh

      101




      101




      New contributor




      sadmansh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      sadmansh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      sadmansh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "2"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          sadmansh is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f964341%2fhide-python-error-message-when-ending-ansible-playbook-with-ctrlc%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          sadmansh is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          sadmansh is a new contributor. Be nice, and check out our Code of Conduct.













          sadmansh is a new contributor. Be nice, and check out our Code of Conduct.












          sadmansh is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f964341%2fhide-python-error-message-when-ending-ansible-playbook-with-ctrlc%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

          Список ссавців Італії Природоохоронні статуси | Список |...

          Українські прізвища Зміст Історичні відомості |...