diff --git a/tpl/ansible_inventory b/tpl/ansible_inventory index d829e60e..3af8e8b0 100644 --- a/tpl/ansible_inventory +++ b/tpl/ansible_inventory @@ -1,5 +1,6 @@ +[validator] {{#each validators }} -[validator-{{@index}}] +validator-{{@index}} {{ this.ipAddress }} [validator-{{@index}}:vars] @@ -11,14 +12,9 @@ loggingFilter='{{{ ../validatorLoggingFilter }}}' {{/each}} -[validator:children] -{{#each validators }} -validator-{{@index}} -{{/each}} - - +[public] {{#each publicNodes }} -[public-{{@index}}] +public-{{@index}} {{ this.ipAddress }} [public-{{@index}}:vars] @@ -30,11 +26,6 @@ loggingFilter='{{{ ../publicLoggingFilter }}}' {{/each}} -[public:children] -{{#each publicNodes }} -public-{{@index}} -{{/each}} - [all:vars] project={{ project }} ansible_ssh_common_args='-o StrictHostKeyChecking=no -o ConnectTimeout=25 -o ControlMaster=no -o UserKnownHostsFile=/dev/null'