Class: Ansible::Ruby::Modules::Import_role

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/utilities/logic/import_role.rb

Overview

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. Most keywords, loops and conditionals will only be applied to the imported tasks, not to this statement itself. If you want the opposite behavior, use M(include_role) instead. To better understand the difference you can read the L(Including and Importing Guide,../user_guide/playbooks_reuse_includes.html).

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#allow_duplicates:yes, ...



29
# File 'lib/ansible/ruby/modules/generated/utilities/logic/import_role.rb', line 29

attribute :allow_duplicates

#defaults_fromString?



25
# File 'lib/ansible/ruby/modules/generated/utilities/logic/import_role.rb', line 25

attribute :defaults_from

#nameString



13
# File 'lib/ansible/ruby/modules/generated/utilities/logic/import_role.rb', line 13

attribute :name

#private:yes, ...



33
# File 'lib/ansible/ruby/modules/generated/utilities/logic/import_role.rb', line 33

attribute :private

#tasks_fromString?



17
# File 'lib/ansible/ruby/modules/generated/utilities/logic/import_role.rb', line 17

attribute :tasks_from

#vars_fromString?



21
# File 'lib/ansible/ruby/modules/generated/utilities/logic/import_role.rb', line 21

attribute :vars_from