ansible/books/base.yml
2022-07-21 15:19:24 +02:00

18 lines
324 B
YAML
Executable file

#!/usr/bin/env ansible-playbook
---
- hosts: server
roles:
- networking
- base
- users
- ssh
tasks:
- name: Check if host is using cloud init
stat:
path: /etc/cloud
register: cloudinit_folder
- include_role:
name: cloudinit
when: cloudinit_folder.stat.exists