ansible_services_hardening/docker/main.yml

30 lines
797 B
YAML
Raw Permalink Normal View History

2023-04-10 22:58:06 +02:00
---
- hosts: all
become: true
vars:
- docker_opts: []
tasks:
- name: Load default variables
include_vars:
dir: "vars/"
files_matching: main.yml
tags:
- load_default_variables
- name: set OS dependent variables
include_vars: '{{ item }}'
with_first_found:
- '{{ ansible_facts.distribution }}_{{ ansible_facts.distribution_major_version }}.yml'
- '{{ ansible_facts.distribution }}.yml'
- '{{ ansible_facts.os_family }}_{{ ansible_facts.distribution_major_version }}.yml'
- '{{ ansible_facts.os_family }}.yml'
tags: always
- include: "tasks/server_init.yml"
tags:
- docker_installation
- include: "./tasks/hardening.yml"
tags:
- docker_hardening