What about not putting the users keys onto the production servers? On 21 July 2017 at 17:21, JS <[email protected]> wrote: > Hello! > > I have a single playbook that with various plays in it. > > It goes out to different environments, either dev, uat, or prod (based on > the --extra-vars input by the user deploying the playbook). > > > i.e. ansible-playbook -i hosts deploy.yml --extra-vars "env=uat" > > > Is there anyway I can set the ansible-playbook to require a password if a > user selects the prod environment? > > They should be allowed to deploy to dev and uat without any authentication > or passwords. > > Thanks > JS > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/ee982bf7-dc4d-4555-9f1a-e46af6e2afdb%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout.
-- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAK5eLPSmq-%2Bk5zta%2BLHj7W3emNZ5j-b%2BLEQz73CoD%3D94eszZBQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
