19 lines
409 B
YAML
19 lines
409 B
YAML
---
|
|
# file: playbook.yml
|
|
|
|
- hosts: default
|
|
become: true
|
|
become_method: su
|
|
pre_tasks:
|
|
- name: "check ansible required param"
|
|
assert:
|
|
that:
|
|
- ssh_pub is defined
|
|
- generated_user is defined
|
|
- generated_group is defined
|
|
fail_msg: "Pass param ssh_pub, generated_user and generated_group to launch this playbook"
|
|
roles:
|
|
- prepare
|
|
- setup
|
|
|