Rather than doing one_private key, two_private_key or having to individually do Generate client one config, Generate client two config, we should be able to:
access keys by either a name or an index, so priv_key[1] or priv_key['one'] instead of one_private_key, and
use one task to handle repetitive client config generation, such as
Rather than doing
one_private key
,two_private_key
or having to individually doGenerate client one config
,Generate client two config
, we should be able to:priv_key[1]
orpriv_key['one']
instead ofone_private_key
, andname: Generate client configs template: src: "templates/{{item}}.conf" dest: "~/{{item}}.conf" owner: root group: root mode: 0600 with_items:
one
two
three
four
name: Generate client one config template: src: "templates/one.conf" dest: "~/one.conf" owner: root group: root mode: 0600
name: Generate client two config template: src: "templates/two.conf" dest: "~/two.conf" owner: root group: root mode: 0600