sounds right On Wed, Jan 7, 2015 at 9:19 AM, Paul Slootman <[email protected]> wrote: > Thanks, something like that might work for me, in combination with setting > some local facts on the Admin server. I'll be trying a couple of things... > > Am I right in assuming that the following: > > - name: create key for oracle > user: name=oracle createhome=no generate_ssh_key=yes > ssh_key_file=.ssh/id_oracle ssh_key_passphrase="" state=present > > will not change anything for an existing oracle user, besides creating an > ssh key if it doesn't yet exist? > > > Paul > > > On Wednesday, 7 January 2015 14:07:00 UTC+1, Brian Coca wrote: >> >> it seems you want something like: >> >> >> - name: generate ssh key >> ... >> when: clusterdata.stdout_lines >> >> - name: install generated key >> ... >> when: not clusterdata.stdout_lines >> >> >> or you can check the length of clusterdata.stdout_lines, which seems >> to be only populated on the admin node. I would still add it to your >> inventory as it is easier to segregate by groups or a group/host var. >> >> -- >> Brian Coca > > -- > 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/e414e77f-c15e-45f1-ab1f-0a9be56f7e18%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout.
-- Brian Coca -- 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/CAJ5XC8%3DmdMUDUw66ufnwW0KxAQHaodgtqGD3v6EBWr0v2hnB0Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
