Small correction to import_role documentation (#33285)

* Small correction to import_role documentation

* Correct line length - pep8, E501
pull/33458/head
Wojciech Sciesinski 7 years ago committed by Jordan Borean
parent 4c29396217
commit dc112a03dd

@ -23,7 +23,8 @@ description:
- Much like the `roles:` keyword, this task loads a role, but it allows you to control it when the role tasks run in - Much like the `roles:` keyword, this task loads a role, but it allows you to control it when the role tasks run in
between other tasks of the play. between other tasks of the play.
- Most keywords, loops and conditionals will only be applied to the imported tasks, not to this statement itself. If - Most keywords, loops and conditionals will only be applied to the imported tasks, not to this statement itself. If
you want the opposite behaviour, use M(include_role) instead. you want the opposite behavior, use M(include_role) instead. To better understand the difference you can read
U(https://docs.ansible.com/ansible/latest/playbooks_reuse_includes.html).
version_added: "2.4" version_added: "2.4"
options: options:
name: name:
@ -63,7 +64,7 @@ EXAMPLES = """
- hosts: all - hosts: all
tasks: tasks:
- import_role: - import_role:
name: myrole name: myrole
- name: Run tasks/other.yaml instead of 'main' - name: Run tasks/other.yaml instead of 'main'
import_role: import_role:

Loading…
Cancel
Save