Difference: AnsibleTipsTricks (12 vs. 13)

Revision 1312 Apr 2022 - IvoVanGeel

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

Ansible tips & tricks

Line: 134 to 134
  path: "/etc/named.conf" regexp: '^(zone\s+"\."\s+IN\s+{[^\n]*)\n(\s*type\s+hint;[^\n]*)\n(\s*file\s+"named\.ca";[^\n]*)\n(};)' replace: '# \1\n# \2\n# \3\n# \4'
Added:
>
>

Loop over network interfaces

Example, showing MTU size:

- debug:
    msg: "{{ ansible_facts[item]['mtu'] }}"
  with_items: "{{ ansible_interfaces }}"
 

-- Ivo van Geel - 21 Sep 2021

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2010-2019 by LANIS