main.yml 307 B

1234567891011
  1. ---
  2. - name: Install dummy interfaces
  3. become: true
  4. template:
  5. src: "templates/interface.conf.j2"
  6. dest: "/etc/network/interfaces.d/{{ item.priority }}-{{ item.name }}.conf"
  7. mode: 0644
  8. when: network.interfaces.dummies is defined
  9. loop: "{{ network.interfaces.dummies | flatten(levels=1) }}"