ansible-template

    1热度

    1回答

    我有一个有一个ansible剧本部署詹金斯,其中詹金斯​​3210 Jinja2的模板文件包含此片段为AD身份验证: <securityRealm class="hudson.plugins.active_directory.ActiveDirectorySecurityRealm" plugin="[email protected]"> <domain>{{ ldap_hostname

    38热度

    7回答

    我想递归复制一个目录和所有.j2文件在那里作为模板。为此,我目前使用以下几行: - template: > src=/src/conf.d/{{ item }} dest=/dest/conf.d/{{ item|replace('.j2','') }} with_lines: find /src/conf.d/ -type f -printf "%P\n"

    1热度

    1回答

    template/file.cfg.j2 该模板文件将包含将在三个框之间共享的基本线。每个盒子的线条都会有一些不同。这是我希望变化的一个值:ize。 set system user nsroot 546426471446579744 -encrypted 的546 ...哈希现在应该在一个{{ }}变量,因为它会在实例之间的不同。 {{ item.hash}} 我需要如何设置它和结构的方法