examples/roles/role_vars_prefix_detection/handlers/main.yml
raw| 1 | --- |
| 2 | - name: Echo thefoo |
| 3 | ansible.builtin.command: echo thefoo |
| 4 | changed_when: true |
| 5 | register: thefoo |
| 6 | |
| 7 | - name: Echo thebar |
| 8 | ansible.builtin.command: echo thebar |
| 9 | changed_when: true |
| 10 | register: role_vars_prefix_detection_thebar |
| 11 | |
| 12 | - name: Test ansible.builtin.set_fact without role prefix |
| 13 | ansible.builtin.set_fact: |
| 14 | foo: bar |
| 15 | |
| 16 | - name: Test set_fact with role prefix |
| 17 | ansible.builtin.set_fact: |
| 18 | role_vars_prefix_detection_foo: bar |