1 2 3 4 5 6 7 8 9 10 11 12
- name: verify running as root fail: msg: playbook must be run as root when: ansible_user_id != "root" - name: include packages include_tasks: pkgs.yml tags: pkgs - name: include sysconf include_tasks: sysconf.yml tags: sysconf