Re: [ansible-project] Adding a value to a host_vars file from an ansible play

2016-03-24 Thread Johannes Kastl
Hi Nigel, Am 24.03.16 schrieb Nigel Metheringham: > I have a slightly different approach to this. I have a relatively generic > pooldata action plugin. This is used in a p Thanks for the answer. I am always interested in new things to learn, so if you drop me a line if you put the script on gith

Re: [ansible-project] Adding a value to a host_vars file from an ansible play

2016-03-24 Thread Nigel Metheringham
I have a slightly different approach to this. I have a relatively generic pooldata action plugin. This is used in a play like this:- - name: Get root password pooldata: data_file: pooldata/rootpw/used/{{inventory_hostname}}.json pool_directory: pooldata/rootpw/pool - name: Set roo

[ansible-project] Adding a value to a host_vars file from an ansible play

2016-03-24 Thread Johannes Kastl
Hi again, next question: Bootstrapping a new server, creating a user, setting a random password. Works like a charm. But is it possible to save the generated password in the corresponding host_vars file for the new server? Johannes -- You received this message because you are subscribed to th