feat: initial commit

This commit is contained in:
Simon Cornet 2025-10-03 11:59:26 +02:00
commit eeaa21f120
18 changed files with 235 additions and 93 deletions

10
tasks/apparmor.yaml Normal file
View file

@ -0,0 +1,10 @@
---
# remove and purge apparmor
- name: "purge apparmor"
ansible.builtin.apt:
name: "apparmor"
state: "absent"
purge: true
when: 'ansible_distribution == "Debian"'
notify: "reboot container"

17
tasks/install.yaml Normal file
View file

@ -0,0 +1,17 @@
---
# install docker
- name: "install docker"
ansible.builtin.apt:
name: "{{ item }}"
state: "present"
with_items:
- "docker.io"
- "python3-pip"
- "python3-docker"
# nfs client
- name: "install nfs"
ansible.builtin.apt:
name: "nfs-common"
state: "present"

15
tasks/main.yaml Normal file
View file

@ -0,0 +1,15 @@
---
# disable apparmor
- name: "apparmor"
ansible.builtin.import_tasks: "apparmor.yaml"
when: 'type == "lxc"'
# flush handler
- name: "flush handlers"
ansible.builtin.meta: "flush_handlers"
# import install
- name: "install"
ansible.builtin.import_tasks: "install.yaml"