Playbook

Below is a simple playbook that calls this role (11) at a single host srv.example.com (2)

 1shell> cat pb.yml
 2- hosts: srv.example.com
 3  gather_facts: true
 4  connection: ssh
 5  remote_user: admin
 6  become: true
 7  become_user: root
 8  become_method: sudo
 9
10  roles:
11    - vbotka.config_light

Note

gather_facts: true (3) must be set to gather facts needed to evaluate OS-specific options of the role. For example, the variable ansible_os_family is needed to select the Ansible module to install packages.