How to mix privileged and unprivileged users in a playbook? The 2019 Stack Overflow Developer...

Is it possible for absolutely everyone to attain enlightenment?

Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?

How much of the clove should I use when using big garlic heads?

What is this sharp, curved notch on my knife for?

What is this business jet?

Why didn't the Event Horizon Telescope team mention Sagittarius A*?

Old scifi movie from the 50s or 60s with men in solid red uniforms who interrogate a spy from the past

What do hard-Brexiteers want with respect to the Irish border?

Why can't devices on different VLANs, but on the same subnet, communicate?

A word that means fill it to the required quantity

Getting crown tickets for Statue of Liberty

Is Cinnamon a desktop environment or a window manager? (Or both?)

How can I add encounters in the Lost Mine of Phandelver campaign without giving PCs too much XP?

Is an up-to-date browser secure on an out-of-date OS?

"as much details as you can remember"

Is bread bad for ducks?

How to obtain a position of last non-zero element

writing variables above the numbers in tikz picture

How do PCB vias affect signal quality?

Straighten subgroup lattice

Did any laptop computers have a built-in 5 1/4 inch floppy drive?

The difference between dialogue marks

What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?

What do these terms in Caesar's Gallic Wars mean?



How to mix privileged and unprivileged users in a playbook?



The 2019 Stack Overflow Developer Survey Results Are InAnsible command-task runs into “Exec format error”Ansible: How to recursively set directory and file permissionsCan't make Ansible to wait for a server to reboot and continue playbook to workHow to ger rid of “[WARNING]: Consider using dnf module rather than running dnf”?Ansible playbook to deploy to new server and remove from othersHow to better secure vagrant virtual machines and delete vagrant userHow to apply a variable to a host group when the groups overlapRun ansible playbook on specified host and group?(kindof solved) Ansible can't connect to (reachable) virtualbox VM (preauth error)Ansible 2.6.2 remote user working but become is not. Config issue?





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







0















The user I use for my the hosts in playbooks cannot sudo due to safety reasons, but I still need to perform admin tasks like make sure git is installed. Is it possible to have Ansible connect to the same host with different users in a single run?










share|improve this question































    0















    The user I use for my the hosts in playbooks cannot sudo due to safety reasons, but I still need to perform admin tasks like make sure git is installed. Is it possible to have Ansible connect to the same host with different users in a single run?










    share|improve this question



























      0












      0








      0








      The user I use for my the hosts in playbooks cannot sudo due to safety reasons, but I still need to perform admin tasks like make sure git is installed. Is it possible to have Ansible connect to the same host with different users in a single run?










      share|improve this question
















      The user I use for my the hosts in playbooks cannot sudo due to safety reasons, but I still need to perform admin tasks like make sure git is installed. Is it possible to have Ansible connect to the same host with different users in a single run?







      ansible






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited yesterday







      Yuri Geinish

















      asked yesterday









      Yuri GeinishYuri Geinish

      83




      83






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          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
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1423756%2fhow-to-mix-privileged-and-unprivileged-users-in-a-playbook%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
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • 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%2fsuperuser.com%2fquestions%2f1423756%2fhow-to-mix-privileged-and-unprivileged-users-in-a-playbook%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

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

          Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

          Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...