Feat: Add docker install to nas

This commit is contained in:
Bertrand Benjamin 2022-06-04 06:08:05 +02:00
parent 37040f843c
commit bde73c9601
2 changed files with 45 additions and 32 deletions

View File

@ -6,48 +6,54 @@
- vars/users.yml - vars/users.yml
- vars/home.yml - vars/home.yml
- vars/nas.yml - vars/nas.yml
tasks:
pre_tasks:
- name: Update - name: Update
apt: apt:
update_cache: true update_cache: true
upgrade: true upgrade: true
# - name: Install core admin tools roles:
# include_role: - role: core
# name: core
# - name: Include user - role: ssh
# include_role: tags:
# name: "user" - ssh
# loop:
# - "{{ admin }}"
# loop_control:
# loop_var: user
# - name: Remove firstboot user - role: samba_server
# ansible.builtin.user: tags:
# name: foo - samba_server
# state: absent
# remove: yes
# - name: Secure ssh - role: nfs_server
# include_role: tags:
# name: ssh - nfs_server
- name: Set up nuts
- role: nut
tags:
- nut
- role: geerlingguy.docker
tags:
- docker
tasks:
- name: Include user
include_role: include_role:
name: nut name: "user"
loop:
- "{{ admin }}"
loop_control:
loop_var: user
tags:
- user
# - name: Set up nfs network shares server - name: Remove firstboot user
# include_role: ansible.builtin.user:
# name: nfs_server name: foo
state: absent
# - name: Set up samba network shares remove: yes
# include_role: tags:
# name: samba_server - user
- name: Install docker
debug:
msg: Todo
- name: Set up monitoring server - name: Set up monitoring server
debug: debug:

View File

@ -1,4 +1,11 @@
--- ---
docker_apt_arch: arm64
docker_compose_version: "v2.6.0"
docker_compose_arch: armv6
docker_users:
- "{{ admin.username }}"
upss: upss:
- name: eaton650 - name: eaton650
driver: usbhid-ups driver: usbhid-ups