Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
menu_book Course Curriculum (Ansible) expand_more
Ansible / Roles and Reuse

include_role

Learn include_role in Ansible through a focused explanation, a topic-specific example, an engineering warning, and a mastery check.

12 min read • Intermediate
ansible-019.yml
yaml
- ansible.builtin.include_role:
    name: nginx
  vars:
    nginx_port: 8080
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content