Fix syntax warnings
instead of [import_tasks](https://docs.ansible.com/ansible/2.4/import_tasks_module.html#options) > Any loops, conditionals and most other keywords will be applied > to the included tasks
This commit is contained in:
parent
93c7d6f794
commit
5c7857bc89
12
main.yml
12
main.yml
@ -22,23 +22,23 @@
|
|||||||
tags: ['mas']
|
tags: ['mas']
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- include: tasks/ansible-setup.yml
|
- include_tasks: tasks/ansible-setup.yml
|
||||||
|
|
||||||
- include: tasks/sudoers.yml
|
- include_tasks: tasks/sudoers.yml
|
||||||
when: configure_sudoers
|
when: configure_sudoers
|
||||||
|
|
||||||
- include: tasks/terminal.yml
|
- include_tasks: tasks/terminal.yml
|
||||||
when: configure_terminal
|
when: configure_terminal
|
||||||
|
|
||||||
- include: tasks/osx.yml
|
- include_tasks: tasks/osx.yml
|
||||||
when: configure_osx
|
when: configure_osx
|
||||||
tags: ['osx']
|
tags: ['osx']
|
||||||
|
|
||||||
- include: tasks/extra-packages.yml
|
- include_tasks: tasks/extra-packages.yml
|
||||||
tags: ['extra-packages']
|
tags: ['extra-packages']
|
||||||
|
|
||||||
- name: Run configured post-provision ansible task files.
|
- name: Run configured post-provision ansible task files.
|
||||||
include: "{{ outer_item }}"
|
include_tasks: "{{ outer_item }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: outer_item
|
loop_var: outer_item
|
||||||
with_fileglob: "{{ post_provision_tasks|default(omit) }}"
|
with_fileglob: "{{ post_provision_tasks|default(omit) }}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user