You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/books/base.yml

19 lines
324 B
YAML

#!/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