On Wednesday, 15 November 2017 14.27.19 CET ZillaYT wrote: > I've read the docs and it seems like all of them point me to coding the p/w > either on the CLI or in group vars, but I want to do this > > --- > - hosts: server > gather_facts: no > > tasks: > - name: Create a file in the server /etc file system > file: > path: /etc/test.txt > state: touch > become: yes > become_password: mySecretpw # this does NOT work, what should?
What works is in the documentation. The reason you don't find something like this in the documentation is because the feature doesn't exist. -- Kai Stian Olstad -- 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/2322425.ByCgSEBYK9%40x1. For more options, visit https://groups.google.com/d/optout.
