123456789101112131415161718192021222324 |
- ---
- - name: Ensure permission on crazytrace directory
- become: true
- file:
- path: /etc/crazytrace
- state: directory
- mode: 0755
- - name: Install configurations
- become: true
- template:
- src: templates/config.yaml.j2
- dest: "/etc/crazytrace/{{ item.interface }}.yaml"
- mode: 0644
- loop: "{{ crazytrace | flatten(levels=1) }}"
- - name: Enable crazytrace
- become: true
- systemd:
- name: "crazytrace@{{ item.interface }}"
- masked: false
- enabled: true
- state: restarted
- loop: "{{ crazytrace | flatten(levels=1) }}"
|