ansible/books/base.yml

19 lines
324 B
YAML
Raw Normal View History

2020-10-12 09:59:51 +02:00
#!/usr/bin/env ansible-playbook
---
2022-07-19 11:44:55 +02:00
- hosts: server
2020-10-12 09:59:51 +02:00
roles:
2021-07-08 02:38:35 +02:00
- networking
2022-07-21 15:19:24 +02:00
- base
2022-07-19 11:44:55 +02:00
- users
2022-07-21 15:19:24 +02:00
- 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